4 ms·
Have the options improved for targeting iOS and Android with HTML5 games? “Use Cordova/PhoneGap” were the recommendations last time I looked. It seems the OP u
by modernerd 7y ago
Have the options improved for targeting iOS and Android with HTML5 games? “Use Cordova/PhoneGap” were the recommendations last time I looked.
It seems the OP uses NW.js/Electron to target desktop, but I can’t see that they target mobile yet. Curious to know how they’d do this if needed.
- lazerwalker 7y agoThese days it's mostly still just "use Cordova/PhoneGap", yeah. For Flappy Royale (http://flappyroyale.io http://flappyroyale.io, https://github.com/flappy-royale/flappy-royale https://github.com/flappy-royale/flappy-royale) we built our own native web view wrappers for both iOS and Android, but that's mostly because we already had extensive native iOS/Android dev experience ourselves and wanted more control. In my experience Cordova/PhoneGap come with a lot of cruft and bloat if all you care about is a canvas and a handful of other hyper-specific native API hooks. At least in the sense of engineering and tooling complexity; I can't speak to runtime performance considerations, except that it should be irrelevant on iOS since everything's using the same WKWebView under the hood.
- z3t4 7y agoFor Android you can make a PWA
- james-skemp 7y agoIonic is also working on/released https://capacitor.ionicframework.com/ https://capacitor.ionicframework.com/ It is meant to be a new version of Cordova, with support for Cordova plugins. At this time the general consensus is that Cordova is still generally the best, unless you specifically need functionality in Capacitor.
- tracker1 7y agoDepending on your needs, rolling your own webview based app is easy enough... just depends on how much feature integration you need to the platform.