How many topics can we make in Firebase Cloud Messaging?

我怕爱的太早我们不能终老 提交于 2019-12-18 16:55:30

问题


I'm building an app where I am using Firebase Cloud Messaging. But I have some doubts. I want to know how many topics we could make in one app instance?

In official docs it writes that

when a single app instance subscribes to an excessive number of topics

it retrieves error TOO_MANY_TOPICS.

I want to know how many topics is allowed. I know that we don't have constraints about number of subscribers and that is okay, but I want to know how many topics could we make in one app instance. Appreciate any help.


回答1:


There is no hard limit on the number of topics an instance can subscribe to, this limit, like many other limits on FCM are in place to prevent abuse. You are unlikely to hit the limit if an instance is subscribed to less than a few thousand topics. If however this is insufficient and you are indeed hitting the subscription limit then I'd advise that you contact Firebase Support.




回答2:


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

Some things to keep in mind about topics:

Topic messaging supports unlimited topics and subscriptions for each app.

You get too many topics error if you are subscribing for too many topics from a single app instance to check abuse.



来源:https://stackoverflow.com/questions/38349024/how-many-topics-can-we-make-in-firebase-cloud-messaging

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