CallKit Keeps Terminating

Hello,

I am currently developing a call service using CallKit and VoIP push. Recently, I have encountered a very challenging issue. During testing, when a VoIP push is received, the incomingCall gets triggered continuously, but then it automatically terminates after about 1-2 seconds. I am checking this issue under the debug scheme, and even when switching to different commits, the same problem persists.

I suspect it might be an issue with the device, but I would like to confirm the cause and find a solution. Below are some characteristics I have noticed:

  1. On this device, when a VoIP push is received, CallKit automatically terminates, but this does not occur when debugging.
  2. The issue always occurs when not debugging.
  3. Looking at the device console logs related to callservicesd, there are many logs with 'invalidate' appended.

For example:

  • Invalidating process assertion for bundle ID <private> from timeout
  • All calls ended. Clearing system uplink muted cache
  • Invalidate callDurationUpdateTimer
  • InCallService has changed process state to 2
  • InCallService has been suspended; invalidating its XPC client connections.
  • [0x565544180] invalidated because the current process cancelled the connection by calling xpc_connection_cancel()
  • XPC connection invalidated from client <private>

These logs appear although our server did not receive any incoming call request, so we did not terminate it on our end. I also checked if there was a crash, but there were no reports left on the device.

Could you please share any insights into the cause or solutions for this situation?

Thank you.

CallKit Keeps Terminating
 
 
Q