我们可以在 Firebase 云消息传递中创建多少主题?

How many topics can we make in Firebase Cloud Messaging?(我们可以在 Firebase 云消息传递中创建多少主题?)
本文介绍了我们可以在 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 云消息传递中创建多少主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)