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?
-
I use this for both Android and iOS: github.com/zo0r/react-native-push-notificationHedeH– HedeH2018-03-18 09:59:36 +00:00Commented Mar 18, 2018 at 9:59
-
2@HedeH - Does it will still works even when the app is completely closed i-e removed from app switcher?Stack Overflow– Stack Overflow2018-12-08 12:04:26 +00:00Commented Dec 8, 2018 at 12:04
-
do you need firebase mandatory for react-native-push-notification?msqar– msqar2019-08-22 01:34:10 +00:00Commented Aug 22, 2019 at 1:34
1 Answer
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
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)