I want to avoid the complexities of managing Device Tokens at the application level
- One user using multiple devices on iOS and Android
- Multiple users subscribed to an application group
Treating #1 and #2 as topics on GCM is obviously an easy solution. So that I only have to deal with my Application UserIds and GroupIds while sending notifications.
1) When device is registering (iOS/Android), I just subscribe the device to topics ["USER_A", "GROUP_A", "GROUP_B"]
2) When sending a notification, just send to a topic.
However, that means, number of topics = users + groups.
1 million users + 500K groups = 1.5 million topics on GCM
My question is..
- Is there any limit to the number of topics on GCM?
- Is there a better approach to avoid managing device subscriptions without having to deal with its complexities when delivering messages.