...
- With FCM users can register and unregister to a topic.
- For our requirement, we can have users by default registered to one topic which can be called as “General”
- And also there can be other topics which users can register based on their needs.
- With FCM we can send messages which can be displayable or non-displayable, which will depend on the flag the payload contains.
- Non-displayable payloads could be for the app side to enable/disable a feature for a particular group of users, could be used for A/B testing.
- Using FCM we can set TTL for a message.
- For the users in the offline state would receive the notification when they come online and won't receive if the TTL is expired.
Caveat:
- If the user registers after If the user registers to FCM after the message has been broadcasted then the new user will not get the notification that was sent before. The solution for this may be, the server can run a cron job for repeatedly sending messages.
Discussions -newton
1. Tenant/Channel based topics
2. General sub to a topic by defaultk
3. Structure a payload - Type of notifications, parameters of a payload
4.