user836026 user836026 - 1 year ago 100
iOS Question

How long time usually application is given to finish in background (backgroundTimeRemaining)

I need to get user location update when application is in background. I used "significant change feature" but the problem with significant change it's not accurate.

Hence, to improve accuracy of "significant change" a "little bit" I'm thinking to complement this with


Thus, my question is how long usually application is given (the value in
) to run in background.

Answer Source

Currently (as of iOS 5), the maximum time an app can remain in the background to finish tasks is 10 minutes. This can change in future iOS releases. You can check the value for yourself by logging the return value of [[UIApplication sharedApplication] backgroundTimeRemaining] when your app enters the background.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download