我想知道在收到VoIP推送时是否允许在以下方法中报告CXCallUpdate
或CXEndCallAction
func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, forType type: PKPushType) {
// report new incoming call
}
感谢您的帮助。
您可能知道,在iOS 13及更高版本上,收到VoIP推送后,您必须向CallKit报告呼叫。但是,一旦您报告了该呼叫并且只要该呼叫保持活动状态,就可以在pushRegistry(:didReceiveIncomingPushWith:type:)
中接收任意数量的VoIP推送并执行您想做的任何事情。