Trigger an incoming VoIP call using CallKit and Twilio-Video API

后端 未结 3 745
旧时难觅i
旧时难觅i 2021-01-21 11:38

By using one of the sample video calling app provided by Twilio (VideoCallKitQuickStart), I am trying to trigger an incoming call by sending a VoIP notification to the App. But

3条回答
  •  爱一瞬间的悲伤
    2021-01-21 12:11

    Swift 3.0

    func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, forType type: PKPushType) {
        NSLog("pushRegistry:didReceiveIncomingPushWithPayload:forType:")
    
        if (type == PKPushType.voIP) {
            print(payload.dictionaryPayload)
            VoiceClient.sharedInstance().handleNotification(payload.dictionaryPayload, delegate: self)
        }
    }
    

    And please don't make any changes in payload without modifying it in order for the SDK to extract the incoming call info out of the payload so that the SDK can notify the application with incoming calls

提交回复
热议问题