How to show incoming video call using react native agora

℡╲_俬逩灬. 提交于 2020-05-17 08:31:12

问题


I want to add real time calling feature in my react native app. I am using agora with socket.io to make it real time and it's working fine when app is in foreground, but I am stuck when app is closed because socket does not work when app is closed I want to show WhatsApp like incoming call screen. Kindly help me. Thanks in advance.


回答1:


You can check out this library: https://github.com/react-native-webrtc/react-native-callkeep

It uses callkit on the ios side and connection service on the android side.

We also have some sample apps for IOS and Android that use CallKit and ConnectionService respectively and use Agora RTM. You can find them here: https://github.com/AgoraIO/Advanced-Video/tree/dev/backup/Calling-Interface



来源:https://stackoverflow.com/questions/60563465/how-to-show-incoming-video-call-using-react-native-agora

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