iOS 13 VoIP推送通知 - 应用程序终止时未调用didReceiveIncomingPushWith

4

我正在iOS应用程序中实现VoIP呼叫功能。在以下方法中,我立即使用CallKit报告传入的呼叫:

func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType, completion: @escaping () -> Void)

当应用程序在前台或后台时,此方法会触发并完美地报告通话。但是,当应用程序被终止时,此方法根本没有被调用。

如果我通过XCode启动应用程序,并在方案中添加“Launch:Wait for the executable to be launched”选项,我可以看到,VoIP推送到达时会运行某些内容,但不是该方法。相反,我几秒钟后收到控制台上的以下消息:Message from debugger: Terminated due to signal 9

非常感谢任何帮助/想法/输入。

2个回答

2

额外信息:这是我对“背景模式”的了解。

enter image description here


1

您需要在后台模式中检查后台处理


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接