React-native-onesignal: Do I need Firebase or Firebase Cloud Messaging to use OneSignal?

Created on 28 Mar 2020  ·  3Comments  ·  Source: OneSignal/react-native-onesignal

Hi,

I just follow the tutorial on React Native OneSignal for iOS : https://documentation.onesignal.com/docs/react-native-sdk-setup

I see somewhere on internet that they mentioned Firebase is needed with OneSignal.

But I don't see it in your tutorial.

Can OneSignal be replaced totally Firebase Cloud Messaging (and Firebase Notifications) ?

Thanks

PS : Is it possible to open a Github Discussions to avoid to open ticket not issues?

Question iOS

Most helpful comment

@Steffi3rd You only need to follow the Firebase setup if you need push for Android, you can skip this if you only need iOS push.

For Android push notifications you will need to create a Firebase Project and enter the Firebase Server Key and Firebase Sender ID key values from it with OneSignal. Follow this guide to create the free Firebase project and how to get them into OneSignal.

react-native-onesignal automatically includes the FCM (Firebase Cloud Messaging) dependencies so don't have to follow any of the FCM docs to add it to your app.

PS: Github only has "Issues" but asking questions this way is fine.

All 3 comments

@Steffi3rd You only need to follow the Firebase setup if you need push for Android, you can skip this if you only need iOS push.

For Android push notifications you will need to create a Firebase Project and enter the Firebase Server Key and Firebase Sender ID key values from it with OneSignal. Follow this guide to create the free Firebase project and how to get them into OneSignal.

react-native-onesignal automatically includes the FCM (Firebase Cloud Messaging) dependencies so don't have to follow any of the FCM docs to add it to your app.

PS: Github only has "Issues" but asking questions this way is fine.

@jkasten2 Great! Thanks a lot for this answer!

For now, I only use iOS for my app.
So as you said, I can skip Firebase part because I use iOS.

So is that mean OneSignal deals directly with APNs (Apple Push Notifications)?

Or does OneSignal use Firebase « under the hood » to communicate with APNs and my device?

(I asked that someone told me that OneSignal is slow sometimes to deliver notifications. And I would like to know if it related to FCM...)

@Steffi3rd Correct, for iOS notifications OneSignal's backend servers connect directly to Apple's APN server to send notifications. Firebase isn't used for OneSignal iOS notifications at all (Client or Server).

For delivery speed we provide a status page the shows API response times and Transactional Delivery Latency.
https://status.onesignal.com/#system-metrics
The round trip time on average is under 100ms when targeting a single device.

I would need more details on what was slow to explain what might have happened in their cases of slow deliveries. However for iOS there are a few things that could result in slower sends in OneSignal's Delays for notifications on iOS devices: section. If you saw this before please also see points 4, 5, & 6, they were just added today.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bitcoinvsalts picture bitcoinvsalts  ·  5Comments

andrewworld picture andrewworld  ·  3Comments

GeoffreyPlitt picture GeoffreyPlitt  ·  4Comments

nitish1099 picture nitish1099  ·  4Comments

rfmejia picture rfmejia  ·  3Comments