Single AngularJS codebase to support web and mobile - android

I have this idea for a new project which should run from iOS, Android and as a website. I wanted to have the exact same interface on the web and mobile.
I found Ionic (with Cordova) to support both iOS and Android. My question is: can I still use the same code base (or most of it) to serve the website?

Yes you can and that why its so amazing, the challenge will be to make a nice responsive design

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/

How to make android application for responsive website

I am having mobile compatible website, it is highly responsive and do all what I need in mobile.
I just like to have an android/ios application, either it can represent my website as container.
Do we have any tool for the same. Is there any way to achieve it, as I do not want to use any mobile hardware like camera, geolocation and any other.
If any container of android or ios can provide a simple interface by opening my site in it, it will be a great option.
Kindly share your view on the same.
Have a look at this article about layouts.
A mobile application provides a different user experience than a mobile website. In your case if you don't want to use the mobile version of your site in the browser, then you need to create an application with a native UI.
For Android:
In my opinion, you should consider using the Empty Activity template from Android Studio to add a WebView inside it that will point to your website.
For iOS:
Seems like iOS Dev kit has the same kind of view.
For Windows Universal Apps:
Their Dev Kit has it as well.
Alternative:
If you feel more comfortable with web technologies, you can consider using Apache Cordova to build a mobile app from web sources.
Conclusion
All the native solutions presented are not that hard to implement (Less than a few hours), they just need you to play a little bit around with the native developing.
Cordova, the web-to-mobile solution, would also need you to play around with it.
Happy mobile developing !

Can i build an android and ios app with jquery mobile

Please, am a web developer. I just built a web app for a school to manage their results and fees.
Now, i intend to build an app on android and ios so its 'easier' for both staff and students to get notifications and interact better.
Is JQuery mobile the asnwer?
Thanks for your reply
jQuery Mobile doesn't create an application for Android nor for iOS, it only makes websites look better on said platforms.
To create a real, native, application for Android you should use Android Studio. To do the same for iOS you need XCode and MAC OS X.
But, if you prefer to write websites, Apache Cordova does what you need. Allows you to create apps for any platform using your usual HTML, CSS and Javascript.
I'll drop the link here so you can check it out.
https://cordova.apache.org/
Another approach is creating a basic Android and iOS app that simply opens a web page (your website), but it is most of the time lacking in performance. If this last approach interests you, just look up "WebView" for Android, "UIWebView" for iOS (Obviously you'll need Android Studio and XCode)
EDIT
This is an old answer, now a ton of different technologies exist to build multiplatform applications, without even losing out on performance (for example, see react-native)
If you have already built the app using JQuery mobile and want to make it into an app I recommend looking at Cordova (PhoneGap) https://cordova.apache.org/
For notifications etc I found https://www.pushwoosh.com/ to have the best integration

Running a mobile app in the iOS environment that was developed native in Android

I figured this would be an easy answer to find, however, I haven't had much luck.
I've heard of services such as Phonegap and others where the developer can develop a web app and it gets wrapped and deployed to the Windows, iOS and Android platforms. However, is there a method that you can build native to Java/Android and then wrap it to run on another mobile device platforms?
Using Google's java2objc code conversion tool you can generate Objective C code from Java code. Google has used it to generate ~40% of the code used in their new email app Inbox so it's a reasonably proven technology.
With that said, it will not generate any UI related code nor should it be, as each platform has its own UI standard. What it can do is to allow you to write the business logic once and reused it for iOS.
I ended up discovering the ionic framework found here. I found it the best (and by far the easiest) route to go for cross platform development. It uses angularJS and web based implementation that wraps content for ios, android, blackberry and windows mobile devices.

Cordova app with angularjs

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

Categories

Resources