Wolfdog
Wolfdog

Reputation: 587

React Native Remote Notifications

So what are your experiences with sending remote notifications to RN app from FCM?

I did some research today, tried bunch of tutorials, but most of them didn't work.

So I wanna hear your opinion, which library are you using for this and what guide did you follow?

Upvotes: 2

Views: 500

Answers (2)

Moein Hosseini
Moein Hosseini

Reputation: 730

I used to react-native-fcm, but now I use react-native-firebase, it is simple to use, just follow the documentation https://rnfirebase.io/docs/v5.x.x/getting-started just follow the installation tab guide, cloud messaging tab guide, and notification tab, also you can find js code there. for IOS part, you need some extra work to add some certificate to your developer id and add some certificate to your firebase app.

Upvotes: 0

Andres Jimenez
Andres Jimenez

Reputation: 96

I did the connection a few days ago. It is not difficult but it requires a lot of configuration as notification is a native feature. I recommend you the following library that can help you:

React Native FCM

Also take in count the following things:

  • For ios you need get some certificates from apple.
  • This guide help with the setup and android part.
  • Remote notification can't reach iOS emulator since it can't fetch APNS token. Use real device.

Upvotes: 1

Related Questions