Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Cloud Messaging - Check existing or available Topics

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 I can check how many existing topics are available for me? Is it only through the console? Or is there an API?

like image 509
AnLT Avatar asked Sep 21 '16 18:09

AnLT


1 Answers

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.

like image 74
AL. Avatar answered Sep 26 '22 00:09

AL.