6

I have develop VOIP call functionality using TWilio Client iOS SDK. I get success to App to App call between two user. I have three case for App to App call.

Case 1 : User 1 and User 2. User 1 have a active app and User 2 have also active app. In this case I have successful establish call between them.

Case 2 : User 1 and User 2. User 1 have a active app and User 2 have Inactive app(Background app mean minimize app). I have an implement local notification in this case and i get local notification.

Case 3 : User 1 and User 2. User a have a active app and User 2 have a suspended app (App is kill). For this case i have implement voip push notification. User 2 get voip push notification. When user 2 click on push notification nothing happen. Call is not establish.

I have manage twilio client token and also ask user to accept , reject and ignore call.

I have message from twilio that use below link : https://www.twilio.com/help/faq/twilio-client/twilio-client-ios-sdk-background-best-practices

I follow all step as mention in doc. But call is not establish after app is suspended (App is kill). How twilio client is listen current user when app is kill. How can we establish call ? many many question are in my mind.

I post question previously in stack Can we do VOIP push notification using Twilio iOS SDK?

How can i resume twilio device connection when app is open from push notification?

I also contact twilio developer but nothing happen.

Please please help me as soon as possible.

4

1 回答 1

2

Twilio Client没有集成 Apple 的推送通知服务。

建议的解决方法是集成您自己的推送通知服务,并将推送通知用作“回退机制”,当移动客户端无法连接到被叫方时(不是由于拒绝,而是某些网络连接问题或被叫方是“不存在”)。实施示例:

  1. 使用PushKit 框架设置 VoIP 推送
  2. pushRegistry:didUpdatePushCredentials:forType:委托方法中,保存设备令牌以及功能令牌中用于设置的 Twilio 客户端名称TCDevice,以便应用程序可以使用与通知设备令牌关联的客户端名称向设备发送推送通知 (证书)。
  3. connection:didFailWithError:委托回调方法中(假设“被叫者当时不可达”的场景),触发来自主叫移动客户端应用程序的推送通知,以通知被叫有未接来电。

请告诉我这是否有帮助。

于 2016-07-02T00:22:43.470 回答