HomeiOS Developmentios - Software crashes on receiving VoIP push notification

ios – Software crashes on receiving VoIP push notification


I am utilizing Twilio VoIP within the iOS utility, each factor is working properly and easy whereas on staging with no crashes, though the appliance on manufacturing is crashing on receiving VoIP calls, particularly being within the background.

I received Deadly Exception: NSInternalInconsistencyException
Killing app as a result of it by no means posted an incoming name to the system after receiving a PushKit VoIP push, I make it possible for name is reported when VoIP push notification is obtained and it’s working properly when working the appliance utilizing xcode.

      func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for kind: PKPushType, completion: @escaping () -> Void) {
        if let delegate = appDelegateData.pushKitEventDelegate {
            delegate.incomingPushReceived(payload: payload, kind: kind, completion: completion)
         }
    }
func incomingPushReceived(payload: PKPushPayload, kind: PKPushType, completion: @escaping () -> Void) {
    // The Voice SDK will use primary queue to invoke `cancelledCallInviteReceived:error:` when delegate queue will not be handed
    incomingPushCompletionCallback = completion
    if !TwilioVoiceSDK.handleNotification(payload.dictionaryPayload, delegate: self, delegateQueue: nil) {
        AppContainer.shared.analytics.log(.voip(.notTwilioNotification))
    }
}

There are some instances that wanted to be dealt with so I deal with them earlier than reporting name to name package

Additionally the stack observe not displaying none of those above features

Deadly Exception: NSInternalInconsistencyException
0  CoreFoundation                 0xa248 __exceptionPreprocess
1  libobjc.A.dylib                0x17a68 objc_exception_throw
2  Basis                     0x54681c _userInfoForFileAndLine
3  PushKit                        0x4744 -[PKPushRegistry _terminateAppIfThereAreUnhandledVoIPPushes]
4  libdispatch.dylib              0x3fdc _dispatch_client_callout
5  libdispatch.dylib              0x13574 _dispatch_lane_barrier_sync_invoke_and_complete
6  PushKit                        0x3a5c __73-[PKPushRegistry voipPayloadReceived:mustPostCall:withCompletionHandler:]_block_invoke
7  libdispatch.dylib              0x24b4 _dispatch_call_block_and_release
8  libdispatch.dylib              0x3fdc _dispatch_client_callout
9  libdispatch.dylib              0x127f4 _dispatch_main_queue_drain
10 libdispatch.dylib              0x12444 _dispatch_main_queue_callback_4CF
11 CoreFoundation                 0x9aa08 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
12 CoreFoundation                 0x7c368 __CFRunLoopRun
13 CoreFoundation                 0x811e4 CFRunLoopRunSpecific
14 GraphicsServices               0x1368 GSEventRunModal
15 UIKitCore                      0x3a2d88 -[UIApplication _run]
16 UIKitCore                      0x3a29ec UIApplicationMain

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments