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.

Community
  • 1
  • 1
Wos
  • 282
  • 1
  • 14
  • Same thing I want. but in addition, When I am calling(Twilio client voice call) from iPhone 5(9.3.2) to Iphone 5(9.3.2) there is no voice between them. any idea? – Ajay Gabani Jun 17 '16 at 11:06
  • @Wos can you tell the process for case1 i.e when app is in forground i am not able to get incoming call. i have used twilio client. – Rajasekher reddy Jun 02 '17 at 06:56

1 Answers1

2

Twilio Client doesn't have Apple's Push Notification Service integrated.

The suggested workaround is to integrate your own push-notification service and use the push-notification as a "fallback mechanism" that when the mobile client failed to connect to a callee (not due to rejection but some network connectivity issue or the callee is "not present"). Example for implementation:

  1. Set up the VoIP Push using the PushKit framework
  2. In the pushRegistry:didUpdatePushCredentials:forType: delegate method, save the device token as well as the Twilio client-name used in the capability token to set up the TCDevice, so that the application can send push notification to the device with the client-name associated with the notification device token (credentials).
  3. In the connection:didFailWithError: delegate callback method (assuming the scenario of "callee not reachable at the time"), trigger a push-notification from the caller mobile client application to notify the callee about the missed call.

Please tell me if this helps at all.

Megan Speir
  • 3,683
  • 1
  • 11
  • 25
  • @Megan Speir : Please Help : http://stackoverflow.com/questions/41845576/ios-10-how-to-show-incoming-voip-call-notification-when-app-is-in-background – Abhishek Thapliyal Jan 31 '17 at 14:54