disableStopDetection property
Disable motion-activity related stop-detection.
iOS
Disables the accelerometer-based Stop-detection System. When disabled, the plugin will use the default iOS behavior of automatically turning off location-services when the device has stopped for exactly 15 minutes. When disabled, you will no longer have control over stopTimeout.
To completely disable automatically turning off iOS location-services, you must also provide pausesLocationUpdatesAutomatically:false.
BackgroundGeolocation.ready(Config(
disableStopDetection: true,
pausesLocationUpdatesAutomatically: false
));
WARNING iOS location-services will never turn off with the above configuration. Do not do this unless you know exactly why you're doing (eg: A jogging app with [Start workout]
/ [Stop Workout]
buttons).
iOS Stop-detection timing
Android
Location-services will never turn OFF if you set this to true
! It will be purely up to you or the user to execute BackgroundGeolocation.changePace:false or BackgroundGeolocation.stop to turn off location-services.
Implementation
bool? disableStopDetection;