Sinch - callDidEstablish is not getting called on Lock screen while answering call from CallKit

前端 未结 3 605
无人共我
无人共我 2021-01-23 01:47

Sinch - callDidEstablish is not getting called on Lock screen while answering call from CallKit.

I have integrated CallKit but answering call f

相关标签:
3条回答
  • 2021-01-23 01:58

    Currently our SDK doesnt work with Callkit, we are working on it and will have a release soon (sorry no date yet)

    0 讨论(0)
  • 2021-01-23 02:04

    This is now possible with latest Sinch SDK. You can find it at Sinch downloads.

    They have also given demo Example with SDK.

    SINCallKitProvider is class responsible for callKit.Which you can copy from sample example.

    Also they have added new Delegate method for it , you can use it as below:

    -(void)client:(id<SINCallClient>)client willReceiveIncomingCall:(id<SINCall>)call{
        [_callKitProvider reportNewIncomingCall:call];
    }
    

    Hope that will help you.

    0 讨论(0)
  • 2021-01-23 02:13

    You have to implement CXProviderDelegate to receive callKit actions delegate,

    Implement this method from CXProviderDelegate.

    -(void)provider:(CXProvider *)provider didActivateAudioSession:(AVAudioSession *)audioSession {

    [_client.callClient provider:provider didActivateAudioSession:audioSession];

    }

    and your callDidEstablish will start getting called.

    0 讨论(0)
提交回复
热议问题