Hybrid web app development started #
"We didn't want to get locked into a particular vendor-proprietary platform," said Brian Leroux, Senior Architect of PhoneGap at the time in the previous presentation video.
The first stable release was PhoneGap 0.6 released in February 2011, and 1.0 in July 2011 a few months before Adobe acquired it. Adobe rebranded the project as Adobe PhoneGap while sending it to the Apache Foundation as Apache Cordova.
Many PhoneGap developers panicked when the AppStore changed rules and approval of apps not using the Apple SDKs were not clear. Pressure over Apple led to a confirmation that these apps were ok if they were not "just websites wrapped in a web view." The fight was not with PhoneGap but with Adobe with their Flash runtime for iOS.
That was the beginning of the hybrid app multiplatform development approach on mobile devices; all the previous attempts were platform-specific (such as Symbian WRT) or a failure in the market (such as BONDI widgets).
Adobe is out of the web app business #
While this is the official end of the PhoneGap era, it's true that Adobe hasn't been actively evolving it in the past few years. PhoneGap Build -the cloud-based building service- was quite old, and investment in Apache Cordova from Adobe was not happening. Adobe PhoneGap never stood up as an aggregated service on top of Apache Cordova.
I've felt a similar moment when Adobe retired Flex and its investment in the Apache version. The reality is that Flex is dead today. Will that happen to Apache Cordova also? The community seems more significant than the Flex one, so we'll see.
Platforms now and then #
PhoneGap 1.0 plan was to support:
- iPhone and iPad
- Windows Phone 7
During these twelve years, other platforms were supported, such as:
- Windows 8.1
- Windows Phone 8.x
- Windows 10 for Phones
- Firefox OS
- Electron (for multiplatform desktop)
- Ubuntu Touch
While iOS, iPadOS, and Android are still here with us, the rest of the original platforms are gone. I'm sure that even saying Bada will make some readers think twice about what that was.
Today, probably iOS (including iPadOS), Android, and Electron are still important, so from a platforms' point of view, the gap is not closed but narrower compared with a decade ago.
Original abilities comparison #
Let's review the core APIs from the initial PhoneGap version to see where we are in 2020:
- on Android with PWAs. both from the browser and using TWA for Google Play Store
- on iOS or iPadOS installing PWAs from the browser
- on iOS or iPadOS using WKWebView for the AppStore without Apache Cordova
|PhoneGap 2009||Android 2020||iOS 2020||iOS WebView 2020|
Apache Cordova Plugins and PWAs #
Now let's make the same analysis but with current Apache Cordova built-in plugin list not available in 2009.
|Cordova 2020||Android 2020||iOS 2020||iOS WebView 2020|
|Media Capture||✅||✅ 🆕||❌|
Is the native-web phone gap closed then? #
Adobe said: "PWAs are increasingly bridging the gap between web and native mobile apps through capabilities such as offline support, push notifications, home-screen icons, and full-screen view control without the need for containers."
Is it true? Is the gap closed with PWAs?
The answer is not straightforward: there are fewer platforms today; instead of eight, we probably have three. For some apps, the PWA platform is good enough today, and it makes sense to say that we don't need PhoneGap anymore.
However, for many apps, the statement might be valid only for Android from this year, thanks to recent API additions from Project Fugu. You can see how many ❌ are actually on iOS－both from a browser point of view and a WebKit point of view. For many apps, then, publishing a web app for iOS users will still need a framework like PhoneGap.
There are also some apps that, even for Android, will need some web view helper because the Trusted Web Activity API today is far behind what you can do on a WebView in terms of bridging native and web.
So I think Adobe's statement is not entirely true; we are not 100% ready to remove app containers for all the web apps. We are closer today than 12 years ago, for sure. We are closer than 2 years ago. But Apache Cordova will still be there as well as Capacitor if your web app can't use just the PWA technologies.
If you'd like to continue building in the cloud, you can migrate to Ionic AppFlow.
It's the end of an era. We thank PhoneGap and the team for all they've done for the web and mobile space.
In 2012, Brian Lerioux wrote in a blog post in 2012: The ultimate purpose of PhoneGap is to cease to exist.
Live long and prosper 🖖🏽
Size and lifetime of the storage is restricted ↩︎
Accelerometer and Gyroscope support was disabled by default during 2019; now it's possible to use it again with a permission API ↩︎
No getUserMedia or WebRTC is available in WKWebView; only can be used through input capture. ↩︎ ↩︎
Notification in PhoneGap was not about Web Notifications or Web Push. This is just the ability to render a native alert dialog, a beep sound or vibrate the device while the app is running ↩︎ ↩︎ ↩︎
WebSQL is disabled on iOS in 2020, but IndexedDB is available ↩︎ ↩︎
Limited support ↩︎