Background fetch is not working after killing the app

蓝咒 提交于 2019-11-30 18:38:36
Alex

The Background Fetching will NOT happen in your app after the user has killed it in the multitasking UI. This is by design.

Take a look at Apple's documentation that mentions:

Apps that support background execution may be relaunched by the system to handle incoming events. If an app is terminated for any reason other than the user force quitting it, the system launches the app...

and

In most cases, the system does not relaunch apps after they are force quit by the user. One exception is location apps, which in iOS 8 and later are relaunched after being force quit by the user. In other cases, though, the user must launch the app explicitly or reboot the device before the app can be launched automatically into the background by the system.

As you noticed in the documentation, there's only 1 exception when the app will be relaunched if it was force killed: by using location services. Unfortunately this does not apply to you.

Also, you cannot detect if the app was force killed by the user. Check this StackOverflow answer.

The Background Fetching will NOT Update in your app after the user has killed app from background. it is not Possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!