List Of Clients Who Have Registered For A Topic In Fcm
Solution 1:
For now, there is no provided solution to get the list of clients have registered to the specific topic in FCM. You have to create your own logic on the server to achieve your requirement to get list of clients registered for a topic.
But according to the below section
Get information about app instances
in the link Instance Id from developers site explains how to get list of topics are subscribed by a clients Instance ID.
Hope this will help you.
Solution 2:
There is no way easy way to do this. The ONLY way is to already know all your users deviceIDs and scripting the retrieval of each users subscriptions there is no other way of doing this. Or from the beginning, as each user subscribes to a topic you save that data in your backend DB. It is a real pain. I wrote google a feature request regarding FCM Cloud Messaging Topic Management and this is the response I got from google:
We're aware that many developers, such as yourself, would like to have this topic management. There's actually an existing feature request regarding this. However, I can't provide any details or timelines as to when this will be available.
Post a Comment for "List Of Clients Who Have Registered For A Topic In Fcm"