Hybrid operating systems
I've been thinking a bit about native and web applications, and how they can (or can't) coexist in the future. This topic has been steeping in my head for months now, so here is a brain dump of some of my thoughts.
On hybrid apps
Hybrid apps embed a browser, using a web view for part of their UI. This is a very flexible definition for a very flexible beast. At one extreme are native apps that embed a Web View to render a small widget (written in HTML/CSS/JS) in the UI. On the other hand, you could have a web application that provides just a native frame around the content which is entirely implemented as a web app. The hybrid app spectrum looks something like this:
native <--------------- hybrid apps ---------------> web Mail.app GMail for iOS GMail
Pieces of the web stack have long been useful as building blocks for applications, but lately there has been a bloom in features under the HTML5 moniker. As a result, many developers are gravitating towards the right end of the hybrid app spectrum.
- Make money: capitalize on AppStore and Market earnings.
- Use more features: get access to features not available from the web.
- Provide good platform-specific native integration.
The first two are relatively well understood, so for the purposes of this post, I'm more interested in the third. Android PhoneGap apps are launched from the home screen, Fluid Mac apps from spotlight or your dock, etc. Then you can switch between these apps as if they were regular OS X applications.
Even though the browser is a single app, it runs tons of applications like GMail, twitter, etc. The browser allows people to do two fundamentally different things: view content on the web (sites), and do things, like listen to music, play games and create documents (apps). For a deeper discussion on the distinctions between web apps and web sites, check out James Pearce's article Of Sites and Apps.
A pure web application does not rely on platform-specific native code and runs inside the browser, but still has to rely on a native frame solution to reap the native integration benefit frameworks like PhoneGap and Fluid provide.
Hybrid operating systems
Some browsers today have an explicit notion of apps. Without the proper OS integration, this is confusing. Now your device (laptop, tablet, phone, tv) has apps, one of which is a browser, and the browser has apps too. So to launch an app, users have to open the browser, and then launch what they want. This reinforces the distinction between web and native apps in people's heads and makes for a very inelegant solution.
Like apps, operating systems vary in how much they embrace web applications. Here is an interesting spectrum to think about:
web agnostic <------------ hybrid OS ------------> apps are webapps iOS Windows 8 Web OS Chrome OS
Web apps today are actively used, in some cases, even surpassing native apps in popularity. Unfortunately, users of web apps are stuck in their browser which is confusing and limiting, given the current landscape of native applications. Hybrid operating systems make explicit the idea that in the end, web apps are just apps.
The second goal of PhoneGap is for the project to cease to exist. This is not a nihilistic sentiment... -- Apache Callback Proposal
My goal is for web apps to become compelling enough to force OS creators to hybridize their platforms. In other words, I'd like to see rightward movement in both the app and OS spectrums. As more hybrid operating systems emerge, we get closer to PhoneGap's second goal.