How many topics an app instance can subscribe in FCM?

喜欢而已 提交于 2019-11-29 08:24:28

I found the answer by running a subscription script for an app instance. After subscribing to 1999 topics, for the next subscription it started giving error: messaging/too-many-topics.

So the threshold value is 1999.

As much as the selected answer is correct, I'll like to post an absolute answer here. Google Firebase Cloud Messaging

Some things to keep in mind about topics:

  • Topic messaging supports unlimited subscriptions for each topic. However, FCM enforces limits in these areas:

  • One app instance can be subscribed to no more than 2000 topics.

  • If you are using batch import to subscribe app instances, each request is limited to 1000 app instances.

  • The frequency of new subscriptions is rate-limited per project. If you send too many subscription requests in a short period of time, FCM servers will respond with a 429 RESOURCE_EXHAUSTED ("quota exceeded") response. Retry with exponential backoff.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!