我们可以在 Firebase 云消息传递中创建多少主题? [英] How many topics can we make in Firebase Cloud Messaging?

查看:27
本文介绍了我们可以在 Firebase 云消息传递中创建多少主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个使用 Firebase 云消息传递的应用.但我有一些疑问.我想知道我们可以在一个应用实例中创建多少个主题?

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?

官方文档中写道

当单个应用实例订阅过多主题时

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

它检索到错误 TOO_MANY_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.

推荐答案

实例可以订阅的主题数量没有硬性限制,这个限制与 FCM 的许多其他限制一样是为了防止滥用.如果一个实例订阅的主题少于几千个,您不太可能达到限制.但是,如果这还不够,并且您确实达到了订阅限制,那么我建议您联系 Firebase 支持.

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.

这篇关于我们可以在 Firebase 云消息传递中创建多少主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆