iOS did not kill app that exec background tasks beyond 3 min
Originator: | fyun | ||
Number: | rdar://28550046 | Date Originated: | 9/29/2016 |
Status: | Open | Resolved: | |
Product: | iOS | Product Version: | 10 |
Classification: | Reproducible: | Sometime |
Summary: In iOS 9 and 10, app can execute in background (once user background the app) for more than 3 minutes. In some cases, it can be 15 minutes. This can cause excessive battery usage for certain app. While it is app's responsibility to control its background time, iOS should be more proactive in killing app that exec in background after 3 minutes. Steps to Reproduce: 1) create a background task ID once the app goes in background, in expiration handler I can check how long this task ID has been running using the timestamp difference. 2) log the timestamp difference to a server 3) find in some cases, background exec is in 300-400 sec range. In one of the more extreme scenario (iPhone 6/iOS 9.3.5), I am seeing 1000 sec of background exec time.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!