Cordova app with angularjs - android

I am trying to make android mobile app using cordova. I have created an application in MEAN.js framework and it is working properly and now i am trying to convert this application into an android mobile application so i tried a lot but could not find a proper solution. Please help me to find the way for creating android mobile app using cordova.
Thankyou.

Cordova is just a layer which converts HTML5 to native mobile app code. The thing to understand is that, although Cordova is extremely strong, it's quite low level. I would recommend you try to use Ionic. It's a framework which allows you to write HTML5 code (which then gets converted to native) but it also provides a layer of Angular. So, basically porting what you have in MEAN to Ionic should be straightforward

Related

Can we convert existing android project to ios using cordova or phonegap?

I need help with some information which I couldn't find anywhere online. is it possible to convert my existing android app to ios using PhoneGap/Cordova? if it is yes, could u guys send me any link to do it. if its no, can I know why? please...
No, you can not convert it. Code base and frameworks are to different. For making cross platform app you can use Flutter, Xamarin or others...
Only if your android app is already a web application. Cordova and phonegap are a set of libraries for extending mobile web applications with native functionalities.
Apache Cordova is an open-source mobile development framework. It allows you to use standard web technologies - HTML5, CSS3, and JavaScript for cross-platform development. If your current Android application is a Native application; you cant convert application to iOS.
For more details : https://cordova.apache.org/docs/en/latest/guide/overview/

Converting iOS app to Android

I am developing an iOS application on swift and I was wondering is it possible to convert the code to run on android devices or I have to develop a new application. I have experience only with writing application on swift and I do not know how to create an android application. If it is possible to convert it it will be great.
If you do not want to write different code for ios and android. Check if Hybrid app fits your requirements. Check out Apache Cordova (Adobe phonegap). You will be coding your application as a web app using HTML Css Js. Please be aware of its own pro's and con's of going with hybrid app.
If you are looking for truly native alternatives, Check out Xamarin which gives you native application's UI, Performance and access to low level API's. You need to code your app in C#
You cannot directly convert swift code to make it work on Android.

Building the app for Web also

Can Nativescript build apps for web as well?
As Ionicframework and similar uses Cordova to build Android and iOS the same code there can be served by an HTTP server to the mobile or desktop browsers.
Will that be possible with the apps built with Nativescript, using same code base for web version of the app?
Nowadays Angular integration is on the way, and using Angular for the mvc kind of things (like data bindings, events etc.) and using Native for the device apis, platform apis and native gui would help in an unequaled way.
Angular parts can be used in the browser as well when built for it. What to do with the xml written for the gui templates in Nativescript, they could be converted to proper html for web built of the app, as Nativescript itself already uses a unified gui api for different platforms, that could be possible. And lastly, native calls made in NativeScript would be ignored in the web build.
It would be great to build for Android, iOS, and Web with the same exact code base.
tl;dr: No
Longer: The big difference between the Cordova/Phonegap based technologies (such as Ionic and Supersonic) and the Dynamic Runtime based technologies (such as NativeScript, React Native and Titanium) is that the first uses a HTML approach where the application is run by WebKit/Blink in a WebView. Looking on the Dynamic Runtime technologies there's no HTML Engine running your app, but rather native views and widgets. The framework (in this case NativeScript) is "just" a bridge between Javascript and the native language of the device.
However, depending of how you architecture your code, you can create Javascript which will be usable in both a NativeScript environment as well as in a browser environment.
Edit: The above means that you could reuse some of your code. There'll still be NativeScript specific code.
Edit2: There's an ongoing project to enable usage of Angular 2 in NativeScript. Please see current status in the issue: https://github.com/NativeScript/NativeScript/issues/103 Also note that the Telerik NativeScript core developer Valentin Stoychev is saying
The idea [is] to enable as much code reuse as possible between your web and mobile apps.
So: Yes on code reuse - no on exact same codebase.
Adding to the (correct) response of Emil - I do not think it is possible to have any significant portion of the app shared (even for the logic part) since {N} apps mostly utilize the Nativscript observable implementation which would probably 'leak' into your models / view models.
Having said that, I suggest you to monitor the work happening on integrating Angular2, which would probably mean a larger code sharing potential (with Angular2 web apps)

Convert Android App To PhoneGap

Is it possible convert a native Android app in to PhoneGap?
There is a script on: http://www.elvenware.com/charlie/development/android/PhoneGap.html which claimed it was possible, however it doesn't seem to have worked, and I am now stuck as to where to go.
Any help would be appreciated.
Is it possible convert a native Android app in to PhoneGap?
You can rewrite it.
There are bits and pieces of stuff that, in theory, could be used by a large development team to try to create an automated Android->HTML5 translator. However, many Android apps could not be translated that way, as they do things that are not presently possible using HTML5, even with the assistance of a hybrid app container like PhoneGap.
I am now stuck as to where to go
I would recommend that you start writing the PhoneGap app.
We are currently making a solution which can address this specific problem: how to convert existing android native java app to cross platform (Javascript). It includes Java->Javascript compiler, resource compiler (XML->HTML+CSS) and Javascript implementation of Android API. More information about the project and its current status can be found here: https://wellevo.com/android-js/

Since the plugins are different in different mobile platforms, how phone gap can be cross-platform?

For an look and feel of IOS or Android app we have to write the native plugins.
For example, if i developed an application in IOS and i have to port that to Android say i have used 6 plugins(calender,air print,Email composer,photo editing,facebook,twitter ). Then probably i have to develop that plugins in android also.
.
Apart from this, if we have to create custom plugin, it is also time consuming.
Now my question is that if we are developing simple listing application from website then phonegap is very useful since there is no need for changing any of the code.There Phonegap is cross platform .
Also when the project is heavy (more activities sorry more pages), can phonegap cause performance issues due to multiple ajax request and javascript loading?
So my question is that is phonegap reliable for an heavy and more plugins needed app?
You can only use html and javascript for programming. So there is no chance to use ios user controls in android.

Categories

Resources