一个应用实例可以在 FCM 中订阅多少个主题? [英] How many topics an app instance can subscribe in FCM?

查看:17
本文介绍了一个应用实例可以在 FCM 中订阅多少个主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如 FCM 文档中所述,可以为一个 Firebase 应用创建无限主题.但正如 Firebase Admin SDK 文档:解释了一个错误:

As mentioned in FCM documents, unlimited topic can be created for one Firebase application. But as the Firebase Admin SDK document: explains an error:

messaging/too-many-topics:- 一个注册令牌已经订阅了最大数量的主题,不能再订阅了.

messaging/too-many-topics:- A registration token has been subscribed to the maximum number of topics and cannot be subscribed to any more.

我无法找到最大主题数的阈值.谁能解释一下,限制是多少?一个应用实例可以在 FCM 中订阅多少个主题?

I was not able to find this threshold value of maximum number of topics. Can anybody explain, what is the limit? How many topics an app instance can subscribe to in FCM?

推荐答案

我通过为应用实例运行订阅脚本找到了答案.订阅 1999 年的主题后,下一次订阅开始出现错误:messaging/too-many-topics.

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.

所以阈值为 1999.

这篇关于一个应用实例可以在 FCM 中订阅多少个主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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