Firebase documentation clearly specifies steps to send notification to device groups. It mentions that:
Create the notification_key, which identifies the device group by mapping a particular group (typically a user) to all of the group's associated registration tokens
Does it mean that notification_key
is unique for the the device group? Docs do not mention that anywhere explicitly. I wanted to be doubly sure, as add and remove devices to group POST calls return notification_key
in response making me think that it can change!
At the moment I was persisting notification_key
once in DB right after group creation and using it for all subsequent requests. Is it the correct approach?