Is it possible to create a cross-platform hybrid application using the same generated code?
Below is the source where I found the subject:
Is it possible to create a cross-platform hybrid application using the same generated code?
Below is the source where I found the subject:
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.