iPhone VOIP在背景中 [英] iPhone VOIP in background
问题描述
我正在开发一个通过Wi-Fi与非iOS设备通信的iPhone应用程序。我的应用程序正在使用VOIP。我已经配置了流并将必要的 UIBackgroundModes
添加到我的 plist
中。
I am developing an iPhone application that communicates with a non iOS device through Wi-Fi. My application is using VOIP.I have configured the streams and added the necessary UIBackgroundModes
into my plist
.
问题是当应用程序进入后台时,应用程序没有从外部设备接收任何信息。
The problem is that the application is not receiving any information from the external device, When it enters in background.
有人可以告诉我,如果我错过了什么吗?
Could somebody tell me if I am missing something?
推荐答案
不确定实际问题。
确保关注
根据iOS后台VOIP应用程序,它只允许TCP连接存活。在背景中可传播。
Make sure following As per iOS background VOIP application it will allow only TCP connection to be alive & communicable in background.
因此,如果您/您的堆栈使用UDP套接字进行VOIP,则将其替换为TCP。
So if you/your stack use UDP socket for VOIP then replace it with TCP.
如果UDP端口保持与您的应用程序绑定,但它在后台模式下处于非活动状态&在前台模式中变为活动状态。
In case of UDP port remain bind with your application, but it is inactive in background mode & become active in foreground mode.
这篇关于iPhone VOIP在背景中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!