I am working on a react-native project (using CRNA) and am to the point where I want to develop push notifications for various features. Does anyone have any suggestions on what library I should use. I've been told that it is typically something rather difficult to get up and running so some light-weight out of the box solution would be great. BTW, I am using Expo for dev environment. Thanks!
If you are using Expo I think push-notifications are already configured. Otherwise I suggest using react-native-fcm. It's easy to implement, it works fine in my project both for Android and iOS. I tried other libraries but only this one worked for me.
Related
I'm setting up push notifications in a React Native app for android and ios, I've been using react-native-push-notifications and PushNotificationsIOS from react-native (I tried the react community package first, but was having troubles with my app building). Just wondering from experience, what the best way to implement it would be?
EDIT:
Forgot to mention that this is for local notifications, I have got remote notifications working with app center
Different people have different opinions on this. I will share my opinion based on my experience.
Have a look at React Native Firebase (Please note that V6.0.0 does not support notification, do use V5.x.x)
The package is well documented and easy to integrate for both IOS and Android.
React Native Firebase
If you are using React Native 0.60+, then this page will be helpful for you.
I have the following considerations:
1.I will never use the hackintosh on a regular basis, maybe only for the final steps on xcode and publishing.
2.It could be that some functionalities i would like to realize cannot be done on phonegap/react native. I heard react native allows one to integrate native codes (e.g. android with java and ios with swift), but I'd like to reconfirm this.
3.I read that many people were complaining about errors with react native on linux even for android. Can someone perhaps tell me if they have already successfully built something with react native + linux?
4.I haven't spent much time on learning react native yet, so this last point might be silly, but if one already have build an android app with react native, how much work is there still to build ios? Also, do I HAVE TO use jquery for react native?
OK, I'll try and answer as thoroughly as possible, from the RN side (I've never really used cordova).
I will never use the hackintosh on a regular basis, maybe only for the final steps on xcode and publishing.
OK, RN works with all platforms. Of course, you will need xCode at one point to publish your app but apart from that everything can be done on other platforms. However, to build on iOS, you will need Xcode to launch the simulator or run you app in debug mode so you will need to work on a Mac.
It could be that some functionalities i would like to realize cannot be done on phonegap/react native. I heard react native allows
one to integrate native codes (e.g. android with java and ios with
swift), but I'd like to reconfirm this.
Yes ! RN allows the integration of native code. Check the docs here and here for more information.
I read that many people were complaining about errors with react native on linux even for android. Can someone perhaps tell me if they
have already successfully built something with react native + linux?
Can't help on this one but RN works with linux, especially the latest versions. Check this
I haven't spent much time on learning react native yet, so this last point might be silly, but if one already have build an android
app with react native, how much work is there still to build ios?
Also, do I HAVE TO use jquery for react native?
I have built apps for iOS and Android and have never used jQuery in any of them. Moreover, jQuery does not work with react-native as explained here
Finally, about 80% of the code (depending on apps of course) is the same between android and iOS. This leaves 20% to work on (usually not long modifications).
Hope this helps, but I strongly recommend using RN instead of phone gap.
I have one simple question, that is can I convert my android .apk app into ios using any software? If yes, then please give me the name of that software. If any alternative method for that please guide me.
Google has a tool to convert the back-end, nothing for front-end though
http://www.xda-developers.com/google-tool-helps-developers-port-android-apps-to-ios/
There is a new startup that clains to convert the APK to IOS.
It's called MechDome.
The goal is very simple and attractable:
Reduce time to market by eliminating cross-platform development. Automatically convert your existing Android apps to high-fidelity, native iOS apps.
There is nothing out there that would convert apk into ios app. To my knowledge there is also nothing out there that could translate android code to IOS. The operation is simply too complex for a simple tool to manage.
However, there are tools you could use to make your apps (developed by you) work across multiple platforms. I'm sure there are more, but here are 2 of them I found in minutes (look into them if you are interested): Apportable, Phonegap (discontinued as of 2020/03. It was made obsolete by ProgressiveWebApps - PWA).
In past decade or so WebApps have been picking up for anything that is not too graphically demanding as they can run on anything that has a Web Browser. With this style devs pretty much open their website in a platform-specific executable and it looks like an app.
As for your existing app depending on complexity of your software you have to rewrite from a little to a lot of code to adapt to IOS APIs.
In short: No. Unless your app is build on multiplatform framework, converting means manual adaptation.
There is no known way to convert an android app to iOS. MechDome which is a Developer Tool that Automatically Converts Android Apps into iOS Apps seems to have stopped as of 30/03/2021. link
However if it is your plan to launch android and iOS app from one coding project, use Flutter which allows you to launch on both platforms simultaneously.
Flutter is Google’s mobile UI framework that provides a fast and expressive way for developers to build native apps on both iOS & Android, using a single codebase.
Get started here link
I'm searching for a framework to create apps for both Android and iOS from one codebase. I'm aware of Appcelarator and PhoneGap etc. However I need a different kind of product. I'm not sure if it exists. I can't find it here or on google.
We are a team of Android and iOS developers and aren't afraid to build natively. What I want is a tool to help me jumpstart development. Preferably a tool where I can create the basic UI and Models and generate native code to use as basis for further development.
Does such a tool exist?
Have you seen Mono??
iOS
Note: Make sure you following the instructions on the MonoTouch website re installation
Development tools (Free): XCode + Interface Builder (http://developer.apple.com/devcenter/ios)
MonoTouch ($399USD): http://monotouch.net/
Register for developer program/app store ($99USD): Register
Android
Note: Make sure you following the instructions on the MonoDroid website re installation
Development tools (Free): Java JDK, Android SDK
MonoDroid (public beta): monodroid-download
Register for developer program/market ($25USD): Register
Don’t forget for the iOS component you’re going to need to go buy a Mac to use.
Have a look at LiveCode 5 from RunRev.
http://www.runrev.com/
Have you checked out DAPP? I like it quite a bit.
http://dapp.kerofrog.com.au/
Yes you can Generate the code for both Android/ios and many more languages using the Tool Swagger
Please Check the tool,this tool gives the basic UI and Models and generate native code to just like your Requirement.
But You have to right the Swaggger Specification file(it will be on Json or Yaml) for that. And after Writing Swagger Specification file You can downlaod the code for Android/ios and other language as well. So kindly follow the document of swagger. You will get clear idea about that.
Here i list down usefull links of swagger :
https://swagger.io/
https://github.com/swagger-api/swagger-codegen
https://editor.swagger.io/
https://swagger.io/docs/
There's a tool called Genexus for Smart Devices, which is a code generator that supports iOS, Android, Blackberry and Windows 8.
However, you need to learn the tool, and I've found it useful only for simple CRUD apps. It does enable extremely fast development of said apps, it's a good fit for simple LOB apps. I've tried it and deployed to Android (haven't tested on iOS or other platforms).
http://www.genexus.com/SD/mobile-application-development?en
If you're experienced with iOS and Android, you'll probably get frustrated though (and I'm sure the code it generates isn't pretty).
I've used the generator for desktop and web .NET and Java, and works reasonably well (with those caveats), so I'm sure the Smart Devices generator will continue evolving.
Take a look at Flutter, from their docs:
Flutter transforms the app development process. Build, test, and deploy beautiful mobile, web, desktop, and embedded apps from a single codebase.
I'm really new with this thing of "Android development" and I was really excited when I found Appcelerator Titanium, but now I got the big surprise, it doesn't work on my computer. What other alternatives are there for Android development specially if they include HTML, JavaScript and CSS for creating such applications?
Everything you need to know is on the official site http://developer.android.com/
There is a very popular alternative for making Android and iOS apps with only HTML and JavaScript. It is called PhoneGap:
http://www.phonegap.com/
I think it is exactly what your looking for.
I hope this helps.
My first port of call would be to try and get on the trial of Google App Inventor. It's a really neat way of making Android apps. You can find out more here: http://appinventor.googlelabs.com/about/
A list of various alternative web-tech-based development frameworks is here
http://en.wikipedia.org/wiki/Multiple_phone_web_based_application_framework
having said that, I have succeeded in running Titanium on Vista and Ubuntu, so if you post the error you are getting someone might be able to help.
App Inventor is fun, although it isn't Javascript based.
You may want to try out Unify, a framework for developing web apps for major platforms (in the moment iOS, Android, webOS - more coming in the future). It is open source and has been released a few days ago. :-)
http://www.unify-project.org/
http://www.unify-training.com/
Get the SL4A app for android. It lets you run python scripts on your android.
Also, look into webview. It let's you load html.