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

后端 未结 3 743
旧时难觅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:22

    Twilio developer evangelist here.

    I'm not particularly good with iOS, but taking a quick look at the documentation for the PKPushRegistryDelegate it looks like your pushRegistry function definition isn't right.

    It should be

    func pushRegistry(_ registry: PKPushRegistry, 
        didReceiveIncomingPushWith payload: PKPushPayload, 
        forType type: PKPushType)
    

    That is, didReceiveIncomingPushWith rather than didReceiveIncomingPushWithPayload.

    Alternatively, does it have anything to do with the fact that you're casting forType to String?

提交回复
热议问题