disableProviderChangeRecord property

bool? disableProviderChangeRecord
final

[Android-only] Disables the automatic insert of a location record into the SDK's SQLite database and subsequent HTTP upload if configured with HttpConfig.url. When a BackgroundGeolocation.onProviderChange event fires, the Android SDK has traditionally recorded a location to show exactly when and where the state of location-services was changed (eg: Location-services disabled).

Some developers' servers have strict HTTP JSON payloads and possibly using PersistenceConfig.locationTemplate, where it's impossible to template the automatically appended provider key in the payload.

Set true to disable this default behaviour.

Example

BackgroundGeolocation.ready(Config(
  persistence: PersistenceConfig(
    disableProviderChangeRecord: true
  )
))

Implementation

final bool? disableProviderChangeRecord;