quickblox-ios-sdk icon indicating copy to clipboard operation
quickblox-ios-sdk copied to clipboard

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

Open Rushang007 opened this issue 4 years ago • 6 comments

i'm facing this error in iOS 13 & Xcode 11.4 i'm using latest version of Quickblox and webrtc SDK

can you please help ? WhatsApp Image 2020-04-08 at 7 42 53 PM

Rushang007 avatar Apr 11 '20 12:04 Rushang007

You can try with objective-C, it's OK with me.

duynk163 avatar Apr 22 '20 08:04 duynk163

@duynk163 what do you mean by objective-C, can you explain in details how to use in my swift code?

Rushang007 avatar Apr 22 '20 08:04 Rushang007

@Rushang007 i am also facing this issue after installing latest quickblox webrtc swift sdk?? Do you find any solution related to this

Awais987 avatar Apr 23 '20 19:04 Awais987

"On iOS 13.0 and later, if you fail to report a call to CallKit, the system will terminate your app. Repeatedly failing to report calls may cause the system to stop delivering any more VoIP push notifications to your app. If you want to initiate a VoIP call without using CallKit, register for push notifications using the UserNotifications framework instead of PushKit."

https://developer.apple.com/documentation/pushkit/pkpushregistrydelegate/2875784-pushregistry

You must report incoming call immediately in didReceiveIncomingPushWith. Example:

func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType, completion: @escaping () -> Void) {
      
        let update = CXCallUpdate()
        update.remoteHandle = CXHandle(type: .phoneNumber, value: '')

        provider.reportNewIncomingCall(with: uuid, update: update) { error in
            ....
        }
   }

katafo avatar Apr 24 '20 13:04 katafo

Please check the latest update Swift-Video-Chat-WEBRTC https://github.com/QuickBlox/quickblox-ios-sdk/commit/9b70536f44558d7ce004449731a9cfb4e539ea2b

VladimirNybozhinsky avatar Apr 29 '20 16:04 VladimirNybozhinsky

Hello,

This is Nikolay from QuickBlox support.

Please let me know if the issue is still relevant.

Please check our documentation: https://docs.quickblox.com/docs/ios-video-calling

Also, please update the SDK to the latest version: https://github.com/QuickBlox/quickblox-ios-sdk/releases/tag/2.17.10

Additionally, please check our samples: https://docs.quickblox.com/docs/code-samples#video-calling-samples

ghost avatar Oct 25 '21 13:10 ghost