The concept behind this feature is quite neat; what we want to do is to simply to send a theme-based notification to stop the notification spamming. While doing that, we have two functionalities that we need to keep in mind:
- Subscribing to a specific topic: This functionality will save the required information of a given device, speaking mainly about the registration ID or the unique token that identifies your device and grouping it with other tokens that requested the same topic. From now on, when the application server sends, whether it's a time-based notification or an instant one, it will mainly be for the user who just asked for the theme or topic itself, not for the overall users.
- The second part is users unsubscribing, ...