Firebase Cloud Messaging - Check existing or available Topics

后端 未结 1 1900
感动是毒
感动是毒 2020-12-04 03:27

I\'ve read on Google Firebase Docs:

Client apps can subscribe to any existing topic, or they can create a new topic.

So how can

相关标签:
1条回答
  • 2020-12-04 03:48

    As already mentioned by @FrankvanPuffelen in the comments section, there is not available API to get a list of Topics you have.

    What you could do is keep record of the topics you have created on your server side. So it pretty much depends on your own implementation.

    Also, if you are thinking of checking the number of subscribers of a specific topic so you can see which ones are active or not, it's also not possible. See this answer by @ArthurThompson:

    No. There is no current way to query the number of subscribers to a topic, you would have to maintain the relationship between token and topics on you app server.

    0 讨论(0)
提交回复
热议问题