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.

Multiple callbacks even if the location is within stationary radius

See original GitHub issue

Following is the configuration I have set:


            locationProvider: backgroundGeoLocation.provider.ANDROID_DISTANCE_FILTER_PROVIDER,  //Only Android
            debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.
            stopOnTerminate: false, // <-- enable this to clear background location settings when the app terminates
            startOnBoot: true,  //Android Only, starts location tracking on device boot

            desiredAccuracy: 100,    //In Meters
            stationaryRadius: 60,  //30,  //In Meters
            distanceFilter: 40, // 20,     //In Meters, minimum distance a user must move horizontally before update
            locationTimeout: 300,    //Android Only. Minimum time in secs before location update

However, even when the phone is stationary it receives random callbacks at random time. Isn’t stationaryRadius of 60 be taken into account?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:42 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
mauron85commented, Jun 20, 2016

Ok then, I need to check code for ANDROID_DISTANCE_FILTER_PROVIDER.

0reactions
mauron85commented, Apr 2, 2018

This issue is almost 2 years old. Closing. Please reopen if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Heartbeat event doesn't getting called in case of stationary ...
We are not getting stationary data when the app is killed although we are getting it when the app is in foreground or...
Read more >
BackgroundGeolocation | Cordova Background Geolocation
If you wish to get the current location in your callback , use getCurrentPosition. Parameters. callback: (event: HeartbeatEvent) => void.
Read more >
Create and monitor geofences - Android Developers
The latitude, longitude, and radius define a geofence, creating a circular area, or fence, around the location of interest. You can have multiple...
Read more >
iOS Geofence CLCircularRegion monitoring. locationManager ...
So choose a center point and radius that are appropriate and give you enough time ... I found a glitch in region monitoring...
Read more >
Circle revolutions rolling around another circle
Circle A, with radius r, gets back to its starting point when A's centre ... If one marks contact point P in the...
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