react-nativereact-native-push-notification

How to push notification remotely with React-Native-Push-Notification?


I am new at mobile app developing, and i have been looking into push notification and , i understand that you have local notification, static on the device and remote notification, send from a notification server (which is not the application server), i am trying to use this library, quite a popular one for doing push notification:

https://github.com/zo0r/react-native-push-notification

I can understand how to set it up in the react native project and use local notification since i found a specific tutorial for it, but the tutorial only show how to use the local notification.

I have been searching for more documents on how to use this library for remote notification step by step, from setting up the notification server to use it in the react native app, but they are all so vague explanations or use different tools.


Solution

  • You can use services such as oneSignal & FCM. Here are some libraries for push notification

    https://github.com/geektimecoil/react-native-onesignal (one signal)

    Tutorial : https://medium.com/differential/react-native-push-notifications-with-onesignal-9db6a7d75e1e

    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

    Some helpful blogs for the integration

    https://medium.com/react-native-training/react-native-push-notifications-with-amazon-pinpoint-ios-b2efa89ced32

    https://medium.com/differential/how-to-setup-push-notifications-in-react-native-ios-android-30ea0131355e