twilio / twilio-voice-ios

Programmable Voice SDK by Twilio
https://www.twilio.com/voice
38 stars 14 forks source link

Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP push. #112

Closed NagarajuKamatham closed 1 year ago

NagarajuKamatham commented 1 year ago

Description

Hello Twilio team,

We developed an app(make/receive voip calls between users) using TwilioVoice, and it's working fine. Recently we're getting an error NSInternalInconsistencyException in PKPushRegistry in latest iOS 16.3.1, even thorough we're reporting call to CallKit.

can you help me out on this issue, why we get this only in latest versions of iOS.

Xcode

Xcode - 14.3

iOS Version

iOS - 16.3.1

iOS Device

iPhone 11

janakirampalepu commented 1 year ago

@bobiechen-twilio Can you quickly check and let us know the root cause for the app crash.

Our app crashes rarely once in 3-4 weeks and we get this exception. But for others it's working.

NSInternalInconsistencyException PKPushRegistry Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP push callback.

bobiechen-twilio commented 1 year ago

Hi

Please refer to this migration guide or follow the example code from the Voice iOS SDK quickstart - make sure the application is reporting PushKit VoIP push notifications to CallKit as incoming call as soon as the incoming push is received by the app, otherwise resulting in policy violation termination.