Is it possible to create a multiplatform hybrid application with PhoneGap?

1
With the advent of creating mobile applications for various platforms using PhoneGap, as an example, I found on the Adobe PhoneGap website the chance to create a hybrid app using both native components of the chosen mobile platform and Cordova components. I was a little confused about one point:

Is it possible to create a cross-platform hybrid application using the same generated code?

Below is the source where I found the subject:

link

    
asked by anonymous 13.10.2015 / 01:37

1 answer

4

Hybrid applications are partially native and partially web apps. Like natives, they must be downloaded through a store application (such as Android's Google Play and Apple's App Store), stored on the device's main screen and can take advantage of all device features (camera, GPS, accelerometer, gestures etc). As web apps, they can be HTML5-based and viewed through an in-app browser, with part or full content uploaded from the web.

You will have a good codebase in general, however, there will be peculiarities for each platform, such as the code for UI. The UI on Android is different from IOS, so you'll have to separate the UI codebase, or assets, if you prefer.

What we can take advantage of in both versions is the way you treat the data coming from your WS via Restful, SOAP, RTC, etc. This codebase can be the same, you will treat the data with the pattern you choose and reuse that code on both mobile platforms.

We can then conclude that the code will be partially reused and partially redone, but it is more advantageous to develop natively, since in the latter case there is no reuse of code, so it is slower to develop.

    
13.10.2015 / 01:49