cordova-plugin-background-geolocation: location interval does not work properly
I give 300000 millisecond location interval to the background geolocation plugin but plugin updates at 2-3 seconds continuously. My code is below…
let config = { desiredAccuracy: 10, stationaryRadius: 30, distanceFilter: 50, notificationTitle: ‘App is running’, notificationText: ‘ENABLED’, foregroundService: true, debug: false, interval: 300000, url: ‘http://…’, httpHeaders: { “Content-Type”: “application/json” }, postTemplate: { “UserId”: this.UserId, “LocationData”: [ { “Lat”: this.lat, “Long”: this.lng, “Date”: this.cuuDate, “BatteryPerc”: this.batteryLevel } ] }, method: ‘POST’, autoSync: true, stopOnTerminate: false, startOnBoot: true };
Your Environment
-
Plugin version: 2.3.5
-
Platform: Android
-
OS version: 7.1
-
Device manufacturer and model: Moto g4
-
Cordova version (
cordova -v
): 8.0.0 -
Cordova platform version (
cordova platform ls
): android 7.0.0 -
Plugin configuration options:
let config = { desiredAccuracy: 10, stationaryRadius: 30, distanceFilter: 50, notificationTitle: ‘App is running’, notificationText: ‘ENABLED’, foregroundService: true, debug: false, interval: 300000, url: ‘http://…’, httpHeaders: { “Content-Type”: “application/json” }, postTemplate: { “UserId”: this.UserId, “LocationData”: [ { “Lat”: this.lat, “Long”: this.lng, “Date”: this.cuuDate, “BatteryPerc”: this.batteryLevel } ] }, method: ‘POST’, autoSync: true, stopOnTerminate: false, startOnBoot: true }; -
Link to your project:
Context
Expected Behavior
Actual Behavior
Possible Fix
Steps to Reproduce
Context
Debug logs
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (3 by maintainers)
mauron85 where can i contact you ? i need informatio regarding your plugin. thanks