Vishal Sharma
Vishal Sharma

Reputation: 2610

Maximum number of topics a device can subscribe to in FCM

Documentation for topic messages for FCM says the following two points

enter image description here

Just wanted to know what is this excessive number of topics? Any approximate value to it? Also, the documentation doesn't say anything about creation of topics. How to create/delete a topic?

Another question -

Document says it takes time to show the topic on firebase console, so, we can't send notifications unless the topic is visible on firebase console (even programmatically)?

Thanks in advance

Upvotes: 3

Views: 4445

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 600006

For future questions, please limit yourself to a single question per post. But here are the answers that I know (or a fairly educated guess):

  1. The limit on the number of topics a client can subscribe to is to counter abuse. It is not a documented value.
  2. A topic is auto-created when a client subscribes to it.
  3. There is no API to delete a topic. It will automatically disappears when nobody is subscribed to it anymore.
  4. You can only send notifications from the console once the topic shows up. You can send notifications from your app server using the Firebase Cloud Messaging API at any moment.

Upvotes: 7

Related Questions