useSignificantChangesOnly property

bool? useSignificantChangesOnly
getter/setter pair

Set true in order to disable constant background-tracking. Locations will be recorded only periodically.

Defaults to false. A location will be recorded only every 500 to 1000 meters (can be higher in non urban environments; depends upon the spacing of Cellular towers). Many of the plugin's configuration parameters will have no effect, such as distanceFilter, stationaryRadius, activityType, etc.

Using significantChangesOnly: true will provide significant power-saving at the expense of fewer recorded locations.

iOS

Engages the iOS Significant Location Changes API API for only periodic location updates every 500-1000 meters. @break

⚠️ If Apple has rejected your application, refusing to grant your app the privilege of using the UIBackgroundMode: "location", this can be a solution.

Android

A location will be recorded several times per hour while the device is in the moving state. No foreground-service will be run (nor its corresponding persistent notification).

Example useSignificantChanges: true

Example useSignificantChanges: false (Default)

Implementation

bool? useSignificantChangesOnly;