Ask HN: mobile development with Phonegap vs. native?
Pretty straightforward story here: Android dev here looking to make a CRUD-type application that can deploy to the iOS platform as well. Seems like PhoneGap might do the trick.
What are your experiences with Phonegap? Is it generally permissibe for making enterprise mobile applications? What features could be missing? Why doesn't everyone use Phonegap if it can deploy to multiple platforms?
Cheers
(
9 comments
| 7 points
| on HN
)
I started very early in PhoneGap. Keeping up with the changes as the product has matured has been a pain, but expected. You'll be glad it's pretty mature at this point.
That said, starting with v3.0 the move to NPM has taken development reliability back a few steps in my opinion. I like the new command line interface, I just wish it worked more consistently. I'm sure it will get better.
>Is it generally permissibe for making enterprise mobile applications?
That's what I use it for. It works well for this purpose. I wouldn't use it for B2C apps though, especially for Android because the browser on Android performs poorly, especially for scrolling - very laggy and spastic.
>What features could be missing?
There are a lot of plugins that fill in the gaps. I don't recall not being able to do something a native app could do. I've used, the GPS, photo gallery, camera, enabled "Open In", FileTransfer, media recording, and probably a few other plugins.
>Why doesn't everyone use Phonegap if it can deploy to multiple platforms?
Because there are other platforms that could be used. If C# is your thing, you could check out http://xamarin.com With that you could write apps in a MVVM style and reuse your ViewModels in a PCL that could be reused across Windows Phone, Android, and iOS.
The thing is, mobile apps are now typically an extension of a web app, so if you already have web developers then PhoneGap gets you there faster. The end result will be a good product, but will never be a truly great product.
check http://push.io/
Basically Phonegap is cool if you want something for both platforms pretty fast and the UI is not too complex (works well for showroom apps for example). However, performance might be an issue (especially since iOS throttles Webkit outsides of safari), and I've heard that you'd more or less need to use pure JS since existing frameworks (e.g. Sencha) would be too slow. Last thing is that you'd generally still need to write 5-15% of native code for your app, depending on its complexity (again, haven't been far enough but got it from devs who use Phonegap for most of their apps).
Phonegap and alike "wrappers" are ok if you have general purpose type of app.
But if you need more optimizations for high performance, or fine grained "under the hood" control - native is the best/only way to go.
Otherwise you're risking to find yourself spending too much time trying to squeeze square peg into round hole.
http://www.appgyver.com/steroids
Check out the video on that page, it uses PhoneGap and the results are pretty impressive.