ios - 在后台保持 VOIP 套接字事件 - iOS 9

标签 ios ios9 pushkit

我知道我可以使用 kCFStreamNetworkServiceTypeVoIP 在后台为 VOIP 应用程序保持套接字事件。然而,这在 iOS 9 上已被弃用,他们建议将 PushKit 框架用于 VOIP 目的。

我的问题是我的应用程序应该在没有互联网连接的情况下工作,所以我无法使用远程通知。该应用程序连接到 SIP 设备以进行 VOIP 调用。

任何建议都有助于 future 的解决方案。

谢谢

最佳答案

顺便说一句,在使用 iOS 10+ SDK 构建时,此功能已被完全删除。参见 QA1938 . Apple 确实提到像您这样的某些应用程序无法访问 Internet,但随后表示唯一的方法是让您打开 APNS 服务器的某些端口,这仍然需要一些 Internet,所以它并不是真的回答你的问题。

Some VoIP apps are specifically designed to work in special networks, ones that don’t provide access to the wider Internet. To use PushKit in such an environment you must configure the network to allow iOS devices to access the Apple Push Notification Service. See TCP and UDP ports used by Apple software products for information on how to do this.

关于ios - 在后台保持 VOIP 套接字事件 - iOS 9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36073840/

相关文章:

ios - 您可以在没有高级开发帐户的情况下使用 Xcode 7 测试版在 iPhone 上测试应用程序吗?

ios - 如何在 html 文件上链接本地 pdf 文件 - html 文件显示在 UIWebView

ios - ios9 和 ios8 之间出现意外的蓝牙配对提示

ios - react native : how to change status bar icon colors

objective-c - 如何在Voip App中使用带有背景的pushkit

apple-push-notifications - iOS 13 杀死应用程序,因为它在收到 PushKit VoIP 回调后从未向系统发布来电

ios - 间歇性和临时性iOS钥匙串(keychain)故障

ios - 音频 CMSampleBuffer 格式

ios - iOS 9 中的 HTTPS 请求 : NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)

ios - 如何在 iOS 中使用预定义的 ssid 和密码将用户连接到 wifi 网络