gpt4 book ai didi

ios - VoIP 通知和使用 apns-priority 10 发送的通知有什么区别?

转载 作者:可可西里 更新时间:2023-11-01 05:48:46 25 4
gpt4 key购买 nike

这是docs状态:

The priority of the notification. Specify one of the following values:

10–Send the push message immediately. Notifications with this priority must trigger an alert, sound, or badge on the target device. It is an error to use this priority for a push notification that contains only the content-available key.

5—Send the push message at a time that takes into account power considerations for the device. Notifications with this priority might be grouped and delivered in bursts. They are throttled, and in some cases are not delivered.

关于VoIP :

Instead of persistent connections, developers should use the PushKit framework—APIs that allows an app to receive pushes (notifications when data is available) from a remote server. Whenever a push is received, the app is called to action. For example, a VoIP app could display an alert when a call is received, and provide an option to accept or reject the call. It could even begin taking precursory steps to initiate the call, in the event the user decides to accept.

我是否正确理解 apns-priority 定义了 APNS 端的消息队列,而 VoIP 推送类型定义了设备上发生的事情?

他们说的是什么意思

It is an error to use this priority for a push notification that contains only the content-available key.

APNS 会返回错误还是只是一种不好的做法?

附言我使用 AWS SNS 发送通知,它不支持自定义 apns-priority,但我很好奇它如何影响流程。

最佳答案

主要区别在于,即使您的应用程序已关闭,voip 通知也可以唤醒您的应用程序以终止/暂停状态,而用户通知只会显示警报,而不会唤醒您的应用程序以供更多引用。 Apple documentation for pushkit

关于ios - VoIP 通知和使用 apns-priority 10 发送的通知有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49128013/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com