A Boolean value indicating whether the location manager object may pause location updates.
- iOS 6.0+
- Mac Catalyst 13.0+Beta
- Core Location
Allowing the location manager to pause updates can improve battery life on the target device without sacrificing location data. When this property is set to
true, the location manager pauses updates (and powers down the appropriate hardware) at times when the location data is unlikely to change. For example, if the user stops for food while using a navigation app, the location manager might pause updates for a period of time. You can help the determination of when to pause location updates by assigning a value to the
After a pause occurs, it is your responsibility to restart location services again when you determine that they are needed. Core Location calls the
location method of your location manager's delegate to let you know that a pause has occurred. In that method, you might configure a local notification whose trigger is of type
UNLocation and is set to notify when the user exits the current region. The message for the local notification should prompt the user to launch your app again so that it can resume updates.
The default value of this property is