Handle Expired VOIP push

Deadly 提交于 2019-12-08 07:32:45

问题


So I have VOIP calling application, where everything is working fine.One user can call to other user and can talk.

But I am facing the problem where I don't understand How Can I fix that Problem.

When user1 is calling to user2, user1 sending voip push request to user2. but user2 is offline or not connected with internet when push notification received, after that when user2 back online voip push delivered, as soon as voip push delivered I show the callkit interface but that time user1 has already disconnected call.

So How can I identify the voip push is expired push or not

What I have tried so far

---> I have connected socket and send message to other user (other user info received from payload ) after that I will wait for 5 seconds if I didn't get response from user1 then I am not showing callkit interface

---> I have tried apns-expiration to 0 but still push delivered

There must be a better way like whatsapp handling this

Please guide me

来源:https://stackoverflow.com/questions/57609832/handle-expired-voip-push

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!