FCM documentation关于“多个发件人”声明:
Note that there is limit of 100 multiple senders.
但是,我不明白如果我尝试同时从 150 个发件人发送 FCM 消息(即所有发件人都将使用相同的 FCM token 值作为消息内容),会发生什么。
目前我对这个案例有3个建议:
- 最多 100 次“首次”发送将成功,其余 50 次发送将被推迟(并在前 100 次发送完成后执行)。
- 100 次发送将会成功,但其余 50 次发送通常不会执行。
- 所有 150 次发送都不会被执行。
什么建议是正确的?
最佳答案
注释位于从多个发件人接收邮件部分下。这适用于实际的发件人,而不是消息。正如 docs 中指出的,一个特定的应用程序可以接收来自多个来源的消息。
这三个建议均不适用于该声明,但这里有一个示例:
假设您有一个新闻应用程序,您可以从多个来源中进行选择。所有选定的来源都可以向您的应用程序发送更新(推送通知)。但是,您的来源数量上限为 100 个。你不能超越这个范围。您必须首先通过删除源来释放空间。
但是,对于消息,当特定设备以给定速率接收过多消息时,您最有可能收到的错误是 Device Message Rate Exceeded :
The rate of messages to a particular device is too high. If an iOS app sends messages at a rate exceeding APNs limits, it may receive this error message
Reduce the number of messages sent to this device and use exponential backoff to retry sending.
关于android - 关于 "100 multiple senders"的 FCM 限制实际上意味着什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56801683/