ios – firebase是不是总是通过APN发送通知?

ios – firebase是不是总是通过APN发送通知?,第1张

概述我注意到 firebase documentation说了以下内容: If a notification payload is provided, or the content_available option is set to true for a message to an iOS device, the message is sent through APNs, otherwise it 我注意到 firebase documentation说了以下内容:

If a notification payload is provIDed,or the content_available
option is set to true for a message to an iOS device,the message is
sent through APNs,otherwise it is sent through the FCM connection
server.

有人可以解释一下这意味着什么吗?

我认为发送到iOS设备的所有推送通知首先发送到Apple,然后由Apple转发到相应的设备,但这里暗示他们是直接向设备发送消息?

当应用程序在iOS上关闭时,这是否可能?

我糊涂了,
谢谢.

解决方法 当应用程序位于前台时,FCM可以直接连接,而不是通过APN进行数据类型消息.在后台发送的消息是按照您的预期通过APN传送的.如果你愿意,你可以看看 source of the FCM client!

您可以控制它是否与shouldEstablishDirectChannel属性一起使用.

从发送角度来看,您不必过于担心这一点 – 根据消息类型以及是否连接了客户端,它作为FCM服务的一部分进行透明处理.

总结

以上是内存溢出为你收集整理的ios – firebase是不是总是通过APN发送通知?全部内容,希望文章能够帮你解决ios – firebase是不是总是通过APN发送通知?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1063686.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-26
下一篇2022-05-26

发表评论

登录后才能评论

评论列表(0条)

    保存