本文介绍了如何使用React Native agora显示传入的视频通话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的本机应用程序中添加实时呼叫功能。
我正在使用agora与socket.io进行实时通信,并且当应用程序处于前台时它可以正常工作,但是当应用程序关闭时我被卡住了,因为当应用程序关闭时套接字不起作用,我想显示WhatsApp像来电屏幕。请帮助我。
预先感谢。

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.

推荐答案

您可以签出该库:

它在ios端使用callkit,在android端使用连接服务。

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

我们还有一些用于IOS和Android的示例应用程序分别使用CallKit和ConnectionService并使用Agora RTM。您可以在这里找到它们:

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

这篇关于如何使用React Native agora显示传入的视频通话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-03 17:34