ios - 如果用户在重新启动之前强制关闭 VoIP 应用程序,它们是否会在设备启动时重新启动?

标签 ios voip multitasking

我在 iOS 应用程序编程指南中找到了这一行:

Including the voip value in the UIBackgroundModes key lets the system know that it should allow the app to run in the background as needed to manage its network sockets. An app with this key is also relaunched in the background immediately after system boot to ensure that the VoIP services are always available.

我发现这个说法总体来说是正确的。但是,如果用户在重新启动设备之前强制关闭应用程序,我的经验是应用程序不会在设备启动时自动重新启动。我可以澄清一下这种特殊情况下的预期行为吗?

最佳答案

这一切都归功于“爱斯基摩人”......

It's generally true that apps that the user 'quits' using the multitasking UI are not automatically launched again. The system takes that as a hint from the user that it should not relaunch the app. If the user wants the app to be automatically launched in future, they must manually launch it at least once.

For VoIP apps this has been the case since VoIP support was introduced. For other types of automatically launched apps the implementation of this heuristic has been less consistent, although I believe that with iOS 7 it's now applied across the board.

关于ios - 如果用户在重新启动之前强制关闭 VoIP 应用程序,它们是否会在设备启动时重新启动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18983737/

相关文章:

ios - ScrollView 或 TableView 标题中的 UITable?

iOS 音频在电话被锁定时接听电话时不工作。用于通话的WebRTC

c - 在C语言中,变量如何存储两个值?

ios - 在应用程序从后台返回之前,在 applicationDidEnterBackground 中添加的 View 不可见

ios - 播放下载的视频 MPMovieController

ios - TableView 的 JSON 数据太慢

ios - 目录名称无效 - 您的应用程序包含已保留的目录名称

android - 使用 Android 的内置声学回声消除

android - 一起启动 Linphone MediaStreamer2 音频和视频流

objective-c - 何时删除 NSTemporaryDirectory 中的文件