作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想知道是否允许在收到 VoIP 推送时在下面的方法中报告 CXCallUpdate
或 CXEndCallAction
。
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/
我是一名优秀的程序员,十分优秀!