iphone - 哪些应用程序启动到后台状态?

标签 iphone objective-c cocoa-touch multitasking

我正在阅读多任务处理文档,其中有一些应用程序直接启动进入后台状态,从不进入前台状态。常规应用程序真的允许这样做吗?谁能给我一个这样的应用示例?

最佳答案

VoIP 应用程序是使用此功能的最大应用程序。基本上,VoIP 应用程序可以在系统中注册自己,以便在网络流量用于它时得到通知,此时应用程序接管传入流量(即接听电话)。 Skype 和 Viber 都使用它。

来自iOS Developer Library (强调我的):

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

重大位置更改后台服务还允许应用程序更新到新位置,即使它没有运行也是如此。

除了这两种情况,在用户启动应用之前,应用无法从终止状态执行任何操作。

关于iphone - 哪些应用程序启动到后台状态?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4411679/

相关文章:

iphone - 如何阻止单元格缩进 - shouldIndentWhileEditingRowAtIndexPath 无效

ios - 我希望我的 UILabel 遵循我的 UISlider 值

iphone - Xcode 4.2 Lion 未在旧设备上安装/运行项目。 iPhone 3G 4.2.1

iphone - 从 Facebook API iOS 的另一个 View Controller 调用方法

iphone - 具有半透明选定背景的 UITableViewCell

iphone - 两个 UILongPressGestureRecognizer,一个可以触发,另一个不能

ios - 从一个 View 中删除一个 View 并将其添加到另一个 View

objective-c - 类型类数组的问题

iOS 10 应用程序已崩溃,因为它试图访问隐私敏感数据

ios - 检测应用程序是否为 : didReceiveRemoteNotification: fetchCompletionHandler: was called by tapping on a notification in Notification Center