How many topics can we do in Firebase Cloud Messaging?

I am creating an application in which I use Firebase Cloud Messaging. But I have some doubts. I want to know how many topics we could do in one instance of the application?

In official documents, he writes that

when one instance of the application subscribes to an excessive number of topics

it is generating TOO_MANY_TOPICS error.

I want to know how many topics are allowed. I know that we do not have restrictions on the number of subscribers , and this is normal, but I want to know how many topics we can do in one instance of the application. Appreciate any help.

+6
source share
2 answers

There is no hard limit on the number of topics that an instance can subscribe to, this limit, like many other FCM restrictions, helps prevent abuse. You are unlikely to reach the limit if an instance is signed by less than a few thousand topics. If, however, this is not enough, and you really click on the subscription restriction, I would advise you to contact Firebase support.

+2
source

https://firebase.google.com/docs/cloud-messaging/android/topic-messaging

Some things to consider regarding topics:

Theme messaging supports unlimited themes and subscriptions for each application.

You get too many error messages if you subscribe to too many topics from the same application instance to check for abuse.

0
source

All Articles