What are expected values for backgroundTimeRemaining?

Back in 2018 I used to get times in the range from 140 to 170 seconds when calling [UIApplication sharedApplication].backgroundTimeRemaining.

Today running on the latest iOS 14 Beta I get about 10 to 20 seconds.

My questions:
  1. Is this documented somewhere?

  2. What times can be expected with which version of iOS?

  3. Did you experience the same issue?

  4. Is there a way to request more time? (I would need about 60 seconds)

Replies

Is this documented somewhere?

Not officially. The official story here is that the amount of background execution time is not documented because it’s subject to change.

Having said that, your recollection about the earlier behaviour of the system is correct. For more info on that change, see my UIApplication Background Task Notes post.

ps I’ve not updated it for iOS 14 beta yet, mostly because it’s still a beta.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"