2

I need to get the incoming call after user killed the application from running .

How can I keep registered in twilio after crashing app .

Thanks in advance !

Devang Goswami
  • 284
  • 3
  • 23
  • What do you mean with manually crash the app? Are referring to the app switch in which the user can kill the app, then you are out of luck. It the user kills an app that is it. The app is removed from memory and no code is called. – rckoenes Sep 10 '15 at 11:53
  • ok , i can send pushnotification , can we run code on receiving notifications ? – Devang Goswami Sep 10 '15 at 11:55
  • Yes, if you send a silent push notification, If you app is not running iOS will start it and give you about 30 second before the os will suspends your app again. Be aware that the user can turn off this behavior but not allowing your app to run in the background. – rckoenes Sep 10 '15 at 11:58
  • Ok , but i tried that and its not let me log in with twilio . i cant get incoming calls ! – Devang Goswami Sep 10 '15 at 12:08
  • No error not bedbug information, you do not give a lot information to go one. Also I have never worked with twilio. – rckoenes Sep 10 '15 at 12:23
  • @Devang, I guess you want to be able to receive incoming calls while your app is in background, the way Skype does? Im looking for a solution for the same problem – humblePilgrim Sep 10 '15 at 12:27
  • Yes , i must receive but when i kill app (press home button two times and kill) i cant able to receive calls – Devang Goswami Sep 10 '15 at 13:20
  • Same question I facing see my question : https://stackoverflow.com/questions/37802913/can-we-do-voip-push-notification-using-twilio-ios-sdk – Wos Jun 17 '16 at 06:53
  • Have you got any solution? – Wos Jun 17 '16 at 06:54
  • Hi @Wos .. You can send a push notification – Devang Goswami Jun 17 '16 at 07:51
  • I already done this using push notification. when I click on notification it takes some time to login into the twilio . and till then I get the state disconnected from other device (who is calling) – Wos Jun 17 '16 at 08:58

1 Answers1

2

Ricky from Twilio here.

If the app is not running at all then the client cannot receive the call. One solution would be to detect the no answer on the server using the call status information from Twilio. Once you see a no answer you could send a APNS message to the device, but right now there is nothing built in that would do that for you.

rickyrobinett
  • 1,224
  • 10
  • 13
  • Hello Ricky , As you have suggested I am sending APNS (push notification) to app when calling .. but when I click on notification it takes some time to login into the twilio . and till then I get the state disconnected from other device (who is calling) . Can you help me handle this ? – Devang Goswami Sep 11 '15 at 09:12