Firebase Cloud Messaging - checking existing or available topics

I read in Google Firebase Docs:

Client applications can subscribe to any existing section or create a new topic.

So how can I check how many existing topics are available to me? Is it just through the console? Or is there an API?

0
source share
1 answer

As @FrankvanPuffelen mentioned in the comments section, there is no API to get a list of topics that you have.

What you can do is keep records of the ones you created on your server side. So it pretty much depends on your own implementation.

In addition, if you want to check the number of subscribers to a particular topic so that you can see which of them are active or not, this is also impossible. See this answer from @ArthurThompson:

No. There is no current way to request the number of subscribers per topic, you will need to maintain a connection between the token and the themes on the application server .

+2
source

Source: https://habr.com/ru/post/1260466/


All Articles