2 ms·
There are a couple of unique advantages of Cordova/Phonegap/Ionic over "plain web apps": - it can be forced to ignore cross-origin policies, which means you ca
by mschuster91 9y ago
There are a couple of unique advantages of Cordova/Phonegap/Ionic over "plain web apps":
- it can be forced to ignore cross-origin policies, which means you can build a backendless Twitter client using only HTML5 (api.twitter.com by default denies CORS requests)
- you get native access to camera livestreams - you can either use Canvas+video elements but lose the ability to focus/flash or you can use the File dialog which is clunky, disruptive and can't do video
- you get real filesystem access
- you can do the "full" app experience (no browser chrome, fullscreen without status bar, customize status bar color)
- proper push notifications even when browser is closed or not started
- code sharing between your webapp and "hybrid app"
- you don't have to use React (as with React Native) but can use any kind of JS framework - even no framework at all (plain JS or just jquery works fine too), or you can use and enhance already existing web apps. This alone is a massive advantage over any other solution: you don't have to code in a framework that expires / breaks in a year, rework entire apps or hire native app developers.
And for those people who complain "webapps are lower performance than native apps": drop that behemoth of Angular and your performance will skyrocket. The only things that do require a fully native app are full-blown 3D games or apps that deal with DRMd video. Even security with TouchID works fine with Cordova and it's easy to code up bridge plugins if there's anything native that you need.