总机制: App进入后台后再运行5s即进入挂起状态,但可启动各种后台任务
后台任务机制:
1、background mode
2、local notification
3、download support
4、隐式推送([Pushing Background Updates to Your App](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app))
5、BGAppRefreshTaskRequest(30s,定时任务 或 周期任务)
6、BGProcessingTaskRequest(几分钟,定时任务 或 周期任务)
7、BackgroundTask(30s左右,不手动终止会被kill进程)
8、NSURLSession
参考资料:
iOS Background Execution Limits
UIApplication Background Task Notes