Phone Basics

I am starting to use phonegap to create a web application for iphones / androids.

I don’t understand why it has different platforms for iPhone and Android, when we have to create one application that will suit both platforms. In addition, Facebook’s integration with telephony is different from what platform I do it on.

My questions:

  • Should I create two projects, one for iphone, one for Android with telephony?

  • If so, what is the point of the telephone plug?

+4
source share
2 answers

The content (your HTML / JS code) is the same, but since PhoneGap is actually a set of Native Wrapper wrappers for mobile devices, why do you end up with so many built-in compiled applications ....

Clearer?

  • you will have one PhoneGap project on the mobile that you want to deploy (iOS, Android, BlackBerry, etc.)

  • again, your content is the same - it's just a PhoneGap project that is different and takes care of its own WebView implementation (which ultimately contains your code).

Without PhoneGap, you can only use your application with a browser - in no way add web applications to the AppStore / Android Market.

Hope this helps

+6
source

The idea of ​​a telephone conversation is “deployed once, deployed everywhere”, which means that you write only one application, and then you can pack it together with different versions suitable for deployment on any mobile device. This is similar to installing Java on Windows, Mac, and Linux. You can run the same code for any of them, because there is a special Java implementation for all three systems. Phonegap works basically the same way, except that you actually put the runtime in your application. If you look at the WAC project, they tried it completely in Java.

+1
source

Source: https://habr.com/ru/post/1383921/


All Articles