disableProviderChangeRecord property
[Android-only]
Disables the automatic insert of a location record into the SDK's SQLite database and subsequent HTTP upload if configured with Config.url.
When a 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 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(
disableProviderChangeRecord: true
))
Implementation
bool? disableProviderChangeRecord;