A Boolean value indicating whether the app should receive location updates when suspended.
- iOS 9.0+
- watchOS 4.0+
- Core Location
Apps that want to receive location updates when suspended must include the
UIBackground key (with the
location value) in their app’s
Info file and set the value of this property to
YES. The presence of the
UIBackground key with the
location value is required for background updates; you use this property to enable and disable background updates programmatically. For example, you might set this property to
YES only after the user enables features in your app where background updates are needed.
When the value of this property is
NO, apps receive location updates normally while running in either the foreground or background based on its current authorization. Updates stop only when the app is suspended, thereby preventing the app from being woken up to handle those events.
The default value of this property is
NO. Setting the value to
YES but omitting the
UIBackground key and
location value in your app’s
Info file is a programmer error.