Moving from Ionic to NativeScript with at least efforts - javascript

What is the fastest way to move (migrate app) from Ionic to NativeScript with the least efforts?
Without rewrite old AngularJS controllers and services.
And using NativeScript with AngularJS not Angular 2.
I need to re-write UI with CSS (replacing HTML with XML) only.
Question is: Does this applicable? or there is no option but to re-write whole app!
If yes, what the path that I have to follow to make it?
The story if you want to know why I want to do this:
I have a mobile application that based on Ionic (ionic 1 with AngularJS), Ionic is really nice platform to build app, but a lot of headache specially with performance challenges, in my App I have a really an issue with this through many devices, until I found NativeScript which is really awesome, so I'm thinking about move my current live app from Ionic to NativeScript.
Until now, as I see seems I have to re-write whole app from scratch, but this is costly and not an option for me, I was searching in internet and found no clear answers, even in documentation they seems only using Angular2 with TS (which is better but not have time for this now) or just plan JavaScript.
This is good side reference: Lost in hybrid app frameworks like Ionic, Cordova,

Simply put you can't. Angular 1 is dependent on the DOM. With NativeScript there is no DOM. Which is why you have performance issues in the webview. You need to just bite the bullet and rewrite it with ng2 you'll thank yourself later. The webview is your downfall with your performance on Cordova and to get away from that you'll have better performance and the perf benefits you get with ng2 are also very nice. Heres a link with some good info on ionic 2 to NativeScript but that's as good as it gets. Because you can't easily from Cordova webview app to native UI like NativeScript or react native. https://www.thepolyglotdeveloper.com/2016/05/converting-ionic-2-mobile-app-nativescript/
Here's someone who just went ionic 2 to NativeScript and commented on the slack channel https://nativescriptcommunity.slack.com/archives/general/p1471789794013989 join the slack channel for some really awesome community help if you decide to do it.

Related

Can I use meteor.js just for back end

I have to build a mobile app that's needs a high level of reactivity. I thought to use meteor.js just for my back end and build the app using native technologies. Can this work?
Yes it can, but you need to evaluate how reliable it will be.
If you're thinking about using JavaScript to write your native app (e.g. React Native) then you have good NPM packages that can help you with this task. For example:
https://blog.meteor.com/leverage-the-power-of-meteor-with-any-client-side-framework-bfb909141008
But if you're thinking about writing completely native code for iOS and Android and still have a DDP connection to use everything from Meteor you'll need to find a third part library written for your platform.
I've tried this in the past and had a bad experience. Once Meteor started getting updates the library broke and my app would not work anymore. This means you would need to find a well maintained project that is always up to date.
I hope I could help a little. It's not a simple decision, but if you research hard enough you can find out what's the best way to do it.
I advice you give it up if you wanna an app with high reactivity and high performance.

How can i use ThreeJS in my android app , or is there any library similar and powerful like three js

Actually I'm making a website where people can customize their jewellery online, I am making this with the help of ThreeJS and I want to make an Android app too, so I must make API only APP for my website and Android App So, please tell me, how can I make API only app with ThreeJS like my website, to consume in website and android APP and iOS app.
Please suggest me.
Three.js is written in javascript so it cannot easily be integrated into a native app. Performance-wise it would probably be best to reimplement the rendering in openGL-ES (which webgl is also based on).
If you want to stay with your three.js implementation you will only have the choice to run your code in a browser-environment (because webgl and javascript) by using a WebView that runs the javascript and webgl-code (quick googling turned up this, which looks promising: https://blog.ludei.com/webgl-ios-8-safari-webview/).
There might even at one point turn up a proper react-native implementation of webgl or even three.js...

Angularjs or jQuery Mobile for Hybrid apps?

Okay, I've been searching to find out which one is the best between Angularjs and jQuery mobile for creating hybrid apps. specifically, an eCommerce type of app. so there won't be much animation as such apart from page transitions etc which i think both Angularjs and jQuery mobile are capable of page transitions mobile style.
I know this question has been asked before but there has been many changes to both Angularjs and jquery mobile since the last questions so I was wondering what the pros and cons are for noth.
I'm more inclined towards jquery mobile as it seems to be easier to use and also because I have never used angularjs before... but i'm willing to go towards angularjs if my app would benefit from it and if not then I can carry on with jquery mobile?
any advise would be appreciated.
Well it depends on the time constraint of the project. If you have enough time to learn AngularJS then you can do have AngularJS.
Both of the framework are good, but as a co-developer I would follow the best practices in development which is MVC framework which is AngularJS offered.

How to use Kendo UI/Mobile with Ember.js?

I'm trying to decide what tech to use to create a mobile app. I want to be able to share as much code as possible between web, iOS & Android. To do this I'm planning on using HTML & javascript, then wrapping the apps using PhoneGap.
I've tried using AngularJS several times, but it's too complicated for me to learn (I want to get the app out, not spend months learning the framework). I've been watching tutorials on ember.js and it looks like it has a much more familiar architecture for me.
I like the look of Kendo UI core & mobile, but can't find any examples of using the widgets from an ember app. Is it possible to do that, or would it likely be so painful or would I have to write so much glue code that I'd wish I hadn't bothered? If so, is there a better way I can get a decent set of cross-platform widgets?

Considerations on loading speed with AngularJS one page app

The argument of one-page app with AngularJS is not clear at all to me. Specifically
why should one prefer one-page apps over standard implementation?
is there any free service that will turn multiple-pages app into Android app?
opting to go for one-page app (as they show in their beginner tutorial) what's the best way to implement it so that the website/app (inclusive of User Panel ecc) doesn't become really slow in phones? Loading controllers only when they're called will help significantly? Is there a relevant page in their documentation on how should an app be implemented in multiple pages?
It really depends on what you want to build, if it's a website, then probably SPA (Single Page App) is not for you, but if it's a web application then SPA is aimed to give the user a more application like feeling (especially when its intended to be used on phones or tablets and wrapped with something like Phonegap)
Not sure what you mean, if you want to take an app written with JS/HTML/CSS and make it native on Android/IOS etc. then up-mentioned Phonegap will do the trick.
If you mean that you want to make a multiple page app to a single page app, then NO, there is no service like that, you'll have to manually do it.
This is a very complex question and has a lot to do with the way you code and what you build, but you can look here or here for some pointers

Categories