QuickBlox / quickblox-ios-sdk

QuickBlox iOS SDK for messaging and video calling
https://quickblox.com/developers/IOS
MIT License
396 stars 358 forks source link

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

Closed Rushang007 closed 1 year ago

Rushang007 commented 4 years ago

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

duynk163 commented 4 years ago

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

Rushang007 commented 4 years ago

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

Awais987 commented 4 years ago

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

katafo commented 4 years ago

"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
            ....
        }
   }
VladimirNybozhinsky commented 4 years ago

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

ghost commented 3 years ago

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