gpt4 book ai didi

swift - 使用 iOS13,是否允许在收到 VoIP 推送时报告 CXCallUpdate 或 CXEndCallAction?

转载 作者:行者123 更新时间:2023-11-28 05:36:44 24 4
gpt4 key购买 nike

我想知道是否允许在收到 VoIP 推送时在下面的方法中报告 CXCallUpdateCXEndCallAction

func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, forType type: PKPushType) {
// report new incoming call
}

官方文档只是提到报告newNewIncomingCall here在那个街区。这里是文档的相关部分。

When linking against the iOS 13 SDK or later, your implementation of this method must report notifications of type voIP to the CallKit framework by calling the reportNewIncomingCall(with:update:completion:) method of your app's CXProvider object.

预先感谢您的帮助。

最佳答案

您可能知道,在 iOS 13 及更高版本上,您必须在收到 VoIP 推送时向 CallKit 报告调用。但是,一旦您报告了调用并且只要调用保持事件状态,您就可以收到任意数量的 VoIP 推送,并在 pushRegistry(:didReceiveIncomingPushWith:type:) 中执行任何您想做的事情.

关于swift - 使用 iOS13,是否允许在收到 VoIP 推送时报告 CXCallUpdate 或 CXEndCallAction?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58414096/

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