-
Hey all, First of all, thank you so much for all the hard work on the library and documentation! 👏 Fairly new to React Native, Integrating has been a joy (and granted, a lot of headaches with a lot of hours on StackOverflow / GitHub ;) but mostly my own faults haha). Apologies if this has been asked/mentioned, couldn't find it. -- I was wondering how the inAppNotificationSettings for Messaging work / if they are integrated into this library. On https://rnfirebase.io/ there is a mention to Notifee (local notifications) which actually has a section about this: "This feature is still a work in progress and will be available in a later release." - The library looks cool btw! As I won't be using local notifications, for now, will Notifee still be required or will this library also receive support for it? Regards, Wouter |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi there! I'm not sure what it is exactly that you are trying to do, so I'm unable to provide any advice really. But, for anything more than the most basic local device notifications you'll need an actual local device notification package, that's notifee. To be more specific about your use case you need to detail the JSON you intend to send with FCM, and what you want the device to do (run some logic via a hook? In what application states on what devices? Show some sort of visible local device notification to the user? With what sort of features?) All the details there become very important, because for instance if you want a custom / branded local device notification to show on iOS when you send an FCM JSON to the device while the app isn't running, you need to use a notification block in the JSON (so iOS will deliver it, it won't deliver data-only JSON reliably to devices when the app is not running) and you need to use Notifee and a notification extension to handle the branding. If you just want basic notifications a notification block in the FCM JSON may be sufficient. Or perhaps you want data-only for some reason, or mixed payloads. Lots to learn about and specify. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi there! I'm not sure what it is exactly that you are trying to do, so I'm unable to provide any advice really.
In general, react-native-firebase (and firebase as an ecosystem) is built around you as a developer sending JSON via FCM from servers to devices. Firebase handles the sending on the servers, and the firebase library on device handles receipt of FCM JSON, with some very very minimal local-device notification features built in. This is all what we consider "FCM" (cloud messaging) and some people call "push notifications", but I think that makes things less clear because we draw a hard line between the FCM and the actual visible notification a user sees (a local device notification).