question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

location interval does not work properly

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
guzmangecommented, Jun 4, 2018

mauron85 where can i contact you ? i need informatio regarding your plugin. thanks

0reactions
stale[bot]commented, Jan 15, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android periodic location locationRequest.interval not working
Android requestLocationUpdates() has locationRequest.interval = 10000 which does not happen, is something wrong? In Details: Successfully ...
Read more >
Location update interval not working on Android #431 - GitHub
According to locationUpdateInterval config, the location should be captured at 10 seconds interval. Actual Behavior. it's capturing every 3 ...
Read more >
LocationRequest | Google Play services
Location requests from applications with only the Manifest.permission.ACCESS_COARSE_LOCATION permission may be throttled to a slower interval, ...
Read more >
Interval Timer – Apps on Google Play
Interval Timer is simple and easy to use. Full screen color coding makes the minimalistic interface glanceable from afar.
Read more >
Request location updates - Android Developers
onLocationResult() callback method and passes it a list of Location objects, or issues a PendingIntent that contains the location in its extended data....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found