I am starting to use phonegap to create a web based application for iphones/androids.
I do not understand why it has different platforms for the iPhone and Android, when we are supposed to create one application that will suit both platforms. Also, Facebook integration with phonegap is different based on what platform I am doing it on.
My questions are:
-
Should I create two projects, one for iphone, one for android with phonegap?
-
If yes, then what is the point of phonegap?
The content (your HTML/JS code) is the same – but since PhoneGap is actually a collection of Native Wrapper per Mobile framework, that’s why you end up with multiple native compiled applications….
Clearer?
you’ll end up with one PhoneGap project per mobile you want to deploy to (iOS, Android, BlackBerry, etc…)
again, your content is the same – it’s just the PhoneGap project that’s different, and takes care of Native implementation of the WebView (that ultimately contains your code).
Without PhoneGap, you could use your app only with a browser – no way to add webapps to the AppStore / Android Market
Hope this helps