I’ve started to implement notifications in my app, and all is fine so far. However, I’d like to let my users decide which kind of notifications they want to receive. How do I take care of this?
As for the notifications; they are generated by a NodeJS app, and then send through https://github.com/expo/expo-server-sdk-node. Right now, I’m using Firebase to store the tokens.
The way I was thinking of was:
- User set their preference in the settings screen
- an async call sets a property in Firestore
- As soon as a notify fires, the NodeJS app gets a list of users that matches the needed preference and than fire the notification to the list of Expotokens that matches.
Is this the right approach? Is this over-kill? As far as I can see, there is no way to handle this entirely in-app (device (either iOS or Android) decides whether to show notification or not).
Thanks in advance!