I am new to react native and I have built an app for magazines and catalogs which are loaded from my online hosting server (GoDaddy). I want to implement push notification in my app from that server on both android and IOS. Where should I begin and what are my options?
You can use services such as onesignal & fcm. Here i am sharing you some libaries for push notification
https://github.com/geektimecoil/react-native-onesignal (one signal)
You can use the below library for fcm, if you need any other firebase services such as authentication, dynamic links etc.. go for this
https://github.com/invertase/react-native-firebase (fcm)
If you just need only push notification services, you can use
https://github.com/evollu/react-native-fcm
I personally suggest you the last one, because i am using this in all of my apps and enjoying better experience with it..
note : all the above has support for both android and ios
this article will be helpfull for integration
https://medium.com/differential/how-to-setup-push-notifications-in-react-native-ios-android-30ea0131355e
Edited in 2020, last repo suggested personally is no longer maintained now. It's deprecated, as said on their repository. For future viewers, please prefer the second last package, i.e. react-native-firebase (fcm)
Related
Currently I am developing hybrid application using Adobe phonegap. I have created java web based application which contains .html, javascript and css files. I have put server side code into cloud.
I have developed hybrid app. but now i have to implement Push Notification in the same application. so i have visited different links for it, but i am confused between either i have to perform it with Android based IDE or Platform or i can directly perform it using Google cloud Messaging or Firebase cloud Messaging.
Is it compulsory to use Android or iOS based Studio or platform?
Is there any plugins related to push notification?
Give me some suggestions regarding implementing Push notification in hybrid Applcation.
You can use FCM and GCM is not available longer.
So FCM is avialable for both android and ios.
For integration you can checkout this repository:
https://github.com/fechanique/cordova-plugin-fcm
Its very simple and easy integration.
I have an Android project using GCM push notification, but my client wants me to migrate from GCM to oneSignal push notification. (negotiable)
The project is a bit old and developed using eclipse.
so my question; is it a good idea to change to oneSignal and what is the difference between GCM and oneSignal ? Better performance ? more features ? is it recommended to use it instead of GCM? Sorry I am an Android beginner and couldn't really find lots of information about oneSignal any help is much appreciated!
OneSignal provides both an API, as well as marketing tools for notifications.
Unlike using the GCM/FCM APIs directly, with OneSignal you can target specific segments of users, schedule notifications, and monitor notification click through rate. OneSignal also provides an Android SDK which takes care of many technical implementation details.
Behind-the-scenes OneSignal then connects to GCM/FCM and sends notifications on behalf of your application.
First, are you aware that Eclipse is no longer officially supported for Android Development. Using Eclipse may be preventing you to quickly creating apps and finding the necessary resources to build a project.
To migrate to the Android Studio from Eclipse just follow this tutorial from Google developers.
Now, for your question about GCM and onesignal, why don't you consider the FCM. The FCM is the new/upgrade version of the GCM. It inherits the reliable and scalable GCM infrastructure, plus new features! If you are integrating messaging in a new app, start with FCM. GCM users are strongly recommended to upgrade to FCM, in order to benefit from new FCM features today and in the future. And FCM is easy to use plus it simplifies client development. You no longer have to write your own registration or subscription retry logic
This SO question will add you more information about FCM.
If you still want to migrate to oneSignal, then this link will help you to know what is oneSignal and why you should use it.
I tried to follow Microsoft Azure's guide to setup Push Notification with Android. But at step 4 I am stucked, as I can not find any places to enable the API for Push Notification, as the link leads to Firebase Cloud Messaging, which I can not use, since I need to provide my app for Windows too.
Azure requires GCM, but when I set it up using GCM, it fails with errorcode 401. What can I do?
... the link leads to Firebase Cloud Messaging, which I can not use, since
I need to provide my app for Windows too
Is Register your app for the Windows Store
section in Getting started with Notification Hubs for Windows Universal Platform Apps what you are looking for? If I understood you correctly, you were looking not for Xamarin-specific code, but for how to set up a hub to push to Windows devices. If it's not correct, please clarify in comments for this answer.
... the problem is, that Android is based upon GCM, and they now are using
FCM
Notification Hubs: how to Enable Firebase cloud messaging provides information about that.
I don't think, that Nikunji's answer helps. You are developing a cross platform app with xamarin. You should follow this guide, instead of Microsoft Azure's one, because the Azure Guide ist just for Android.
Good luck!
Edit: Based on the comments, I think you you should take a look at this and this.
I am currently developing an app where users create posts that are stored on a server. When another user shows interest in a post by clicking a button, I want to notify the author of the post using push notifications. I have already set up the data storage using cloud endpoints with Google App Engine. Is there anyway I can use these endpoints to implement push notifications? If not is there another easy way to implement push notifications given my current setup? I have already read about Google Cloud Messaging on the developers page but was somewhat confused. I have kept track of the registration id's but I don't really know where to go from there. Thanks in advance.
You can use the HTTP interface to the GCM servers as described in this
Android developers page.
The easiest way to do it is by downloading the Google Cloud Messaging for Android Library using the Android SDK Manager, which will give you a jar that handles all the complexity of setting up the requests and responses to GCM.
Towards the bottom of that page, there is a sample Java application for push notifications on App Engine which you can use to get familiar with sending push notifications and then adapt to your needs.
I have my Titanium Application for Android and now I want to implement Push Notification for Android in Titanium. I have my back-end service which get all notifications for me but I don't have knowledge about Google Cloud Messaging and what are the relation between them (i.e Push Notification and GCM). Please Provide me guidelines and way how to do it. Thanks in Advance!
Doing push notifications with Titanium is probably going to require a 3rd party service, most, if not all, are subscription fee based.
I've been looking to this myself for some planned future projects using either Titanium or Apache Cordova(Phone Gap).
The most popular recommendation I've been getting is Urban Airship It looks like they have some pretty nice features, but I haven't looked much further into it than that.
For Titanium, you can use this module (Open Source): https://github.com/liccowee/Google-Cloud-Messaging--Titanium-.
In examples, you see how to implement it in your app.