订户离线时的FCM推送通知 [英] FCM push notification when subscribers offline

查看:51
本文介绍了订户离线时的FCM推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在浏览FCM文档,并且-我想了解订户在更长的离线时间后上线会发生什么情况.
-FCM会存储离线期间收到的所有推送通知-订阅者上线后,FCM会发送所有消息吗?

I was running through FCM documentation and - I would like to understand about what would happen when the subscribers come online after a longer offline period.
- Will FCM store all the push notifications received during the offline period - Will FCM deliver all the messages once the subscribers have come online

推荐答案

如果设备未连接到FCM,则消息将一直存储到建立连接为止(再次遵守折叠键规则).建立连接后,FCM会将所有未决消息传递到设备.如果设备再也无法连接(例如,如果它已恢复出厂设置),则该消息最终将超时并从FCM存储器中丢弃.除非设置了 time_to_live 标志,否则默认超时为四周.

If the device is not connected to FCM, the message is stored until a connection is established (again respecting the collapse key rules). When a connection is established, FCM delivers all pending messages to the device. If the device never gets connected again (for instance, if it was factory reset), the message eventually times out and is discarded from FCM storage. The default timeout is four weeks, unless the time_to_live flag is set.

  • 消息的生存期
  • 这篇关于订户离线时的FCM推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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