When attached app to debugger with real device, the OS seems to kill the app if the Callkit interface isn't emitted by the app at background within 5s. Do you have any tip in debugging?
Difficulty in debugging VOIP notification
When attached app to debugger with real device, the OS seems to kill the app if the CallKit interface isn't emitted by the app at background within 5s.
Yes, this is a standard behavior in CallKit. See here:
"When linking against the iOS 13 SDK or later, your implementation of this method must report notifications of type PKPushTypeVoIP to the CallKit framework by calling the reportNewIncomingCallWithUUID:update:completion: method of your app’s CXProvider object."
Part of that requirement is also enforced by a time requirement, so delaying your call report too long will cause your app to be terminated. As an aside, the original delegate above has been replaced by the new alternative described here.
Do you have any tips in debugging?
I'm not sure what you mean. The crash itself isn't a bug, it's an intentional behavior which proper call reporting will prevent. Is it causing your app other issues?
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware