invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.81k stars 213 forks source link

Backend server must integrate too? #286

Closed 7dp closed 2 years ago

7dp commented 2 years ago

Thanks for the great library!

If I use this library in RN, then whether my backend server should also use it or not? Because since I use this lib, FCM notifications from my backend server wasn't delivered at all.

8BallBomBom commented 2 years ago

As far as i'm aware this library is only used for managing and displaying notifications. Which means adding it to a backend server would be useless.

The backend needs to be hooked together with FCM and then the actual app works with FCM, takes the data from it to then display notifications. You can also have your own systems in place instead of FCM. But that requires a lot more work.

mikehardy commented 2 years ago

Essentially what @8BallBomBom said, your question - while I understand where it's coming from - has no relation to this library as this library is for display of local notifications. There is a bit of integration with FCM (but you could also use OneSignal ?) and all of that is up to you, those are remote notifications and you should use the one that works for you.

This library can be considered a reasonable companion to @react-native-firebase/messaging and firebase's messaging service ('FCM') to push JSON across the net to devices, but if you are having problems with that, it's a problem with the JSON you are sending, or how message delivery actually works vs expectations of how message delivery works (there's a firebase team video on message delivery on youtbue to help with that)