invertase / react-native-notifee

Moved to https://github.com/invertase/notifee
https://invertase.io/blog/open-sourcing-notifee
Other
466 stars 31 forks source link

Firebase-related? #2

Closed hmazer closed 4 years ago

hmazer commented 4 years ago

Is this module related to r-n-Firebase or not? Can I, for instance, register to fireabase nototification topics without it ?

Salakar commented 4 years ago

Separate to RNFirebase. RNFirebase Messaging already allows you to register to messaging topics. Messaging is not notifications.

This library will allow you to create local notifications without FCM, or make richer notifications from an FCM message if using alongside RNFirebase Messaging.

matamicen commented 4 years ago

@Salakar So in order to implement PushNotifications I can use FCM messaging with notifee ? if the answer is yes, If the app is installed and is in Foreground, background or even not launched Do I can still receiving the push Notifications ? Do I have to still using APNS certificates to everything works on the iOS side or FCM Messaging replace APNS in this case? Sorry to many questions but I don't understand the Arquitecture of all of this. Thanks! :)

Salakar commented 4 years ago

If the app is installed and is in Foreground, background or even not launched Do I can still receiving the push Notifications ?

For Android on Notifee this works if the app is in the foreground, background or if the app is quit, so you will always get the notification sent to JS land.

For iOS on Notifee, due to platform limitations this only works in some scenarios (mainly around if the APNS message is sent with content-available) - but we are looking into possible aways around this e.g. via a UNNotificationContentExtension - but so far most of our time has been spent getting Android ready for alpha release so it's too early to say much about iOS.

Ehesp commented 4 years ago

Hey, a guide has been written up about FCM integration: https://notifee.app/react-native/docs/integrations/fcm