android - 关于 "100 multiple senders"的 FCM 限制实际上意味着什么?

标签 android firebase push-notification firebase-cloud-messaging

FCM documentation关于“多个发件人”声明:

Note that there is limit of 100 multiple senders.


但是,我不明白如果我尝试同时从 150 个发件人发送 FCM 消息(即所有发件人都将使用相同的 FCM token 值作为消息内容),会发生什么。

目前我对这个案例有3个建议:

  1. 最多 100 次“首次”发送将成功,其余 50 次发送将被推迟(并在前 100 次发送完成后执行)。
  2. 100 次发送将会成功,但其余 50 次发送通常不会执行。
  3. 所有 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/

相关文章:

android - Android 4.4和5.0中不同的状态栏样式

android - 不丢失旧 token 的 FCM 迁移

javascript - 将用户数据从一个屏幕传递到另一个屏幕 - React Native

android - Firebase 分析 : Show Average of 'Value' Parameter and average of time like 'hh:mm:ss' in the Console for events sent from Android app

android - MapView onCreate 在 LG 设备上抛出 NullPointerException

android - 如何修复模拟器 : qemu-system-x86_64: warning: host doesn't support requested feature: CPUID. 80000001H :ECX. abm [位 5]

android - 如何实现 BroadcastReceiver 做不同的任务取决于时间间隔

ios - 在 IOS Swift 中定期向用户发送通知

python - Web 推送通知有效负载数据为空

multithreading - iOS 推送通知 - 应用程序 :didRegisterForRemoteNotificationsWithDeviceToken: execute in main thread?