location interval does not work properly
See original GitHub issueI 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (3 by maintainers)
Top GitHub Comments
mauron85 where can i contact you ? i need informatio regarding your plugin. thanks
This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn’t be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it’s important. Thank you for your contributions.