This is a migrated thread and some comments may be shown as answers.

Convert Appbuilder Cordova (+ Kendo Mobile) project to NativeScript

2 Answers 118 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Luka
Top achievements
Rank 1
Luka asked on 28 Jun 2017, 07:47 AM

Hello,

I was wondering is it possible to convert Appbuilder Cordova (+ Kendo Mobile) project to NativeScrtip project, and if it is - how ?

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 30 Jun 2017, 11:57 AM

Hi Luka,

Hybrid mobile apps and NativeScript mobile apps both rely on JavaScript to get the job done, but are actually quite different on how they work:

Hybrid mobile app - It is an app that runs inside a WebView which is basically a chromeless browser inside you mobile app. As the WebView is actually a browser, you use web technologies (HTML5, CSS, JavaScript) to build the app. You rely on Cordova plugins to access native device APIs. A plugin is a package of injected code that allows the Cordova WebView within which the app renders to communicate with the native platform on which it runs.

NativeScript app - NativeScript is not based on HTML and does not use WebViews. Typically, the design of the UI is developed and stored in XML files. NativeScript lets you access all native APIs from the underlying platform without the need of a plugin but instead relies on modules. You may read more on how NativeScript works here.

As you can see NativeScript and Hybrid mobile apps both use JavaScript to write the logic of the app but use different UI components (XML vs HTML) and different ways to execute the JavaScript code and access the native API of the device. Therefore there is no automated way to convert a Hybrid mobile app to a NativeScript app. You would have to manually re-write the UI and app logic to convert a Hybrid app to a NativeScript app.

You may further read this article: Flip that App! Hybrid Mobile to JavaScript Native.

I hope this has helped. 

Regards,
Martin
Progress Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Luka
Top achievements
Rank 1
answered on 30 Jun 2017, 03:27 PM
Thanks for your answer!
Tags
General Discussion
Asked by
Luka
Top achievements
Rank 1
Answers by
Martin
Telerik team
Luka
Top achievements
Rank 1
Share this question
or