getLocations doesn't return all locations in 3.0.0-alpha.48
See original GitHub issueYour Environment
- Plugin version: 3.0.0-alpha.48
- Platform: Android
- OS version: 8.0.0 / 7.0.0
- Device manufacturer and model: S8 / Redmi Note4
- Cordova version (
cordova -v
): 8.1.2 - Cordova platform version (
cordova platform ls
): android 7.1.0 ios 4.5.5 - Plugin configuration options:
{
locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER,
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: distance,
distanceFilter: distance,
notificationTitle: "Locator is tracking",
notificationText: "Locator is enabled",
debug: false,
interval: 10000,
fastestInterval: 5000,
activitiesInterval: 10000,
stopOnTerminate: true,
startOnBoot: false,
startForeground: true,
maxLocations: 100000
}
- Link to your project:
Context
I am invoking BackgroundGeolocation.getLocations
to get all stored locations or at least the last 100k.
Expected Behavior
I was expecting to receive all locations stored (or at least the last 100k), instead, I have just few, but certainly not all. I compared alpha.48 to alpha.47 where all is working just fine and I can retrieve all locations stored for the certain period.
Actual Behavior
I have received few locations but they are not all. To compare - I have the app compiled with 47. In this case I have received approx 60 locations for ~10 mins. In 48, for the same timespan and going through the same route, I have received just 6 locations. Please note, I kept all other options the same, only plugin changed.
BTW - I noticed one visual difference - until 47 version, the plugin created dummy
account into device’s account place. Since 48, the account now is named after the app.
Possible Fix
Steps to Reproduce
- Compile with 47 and make some movements (I walked around approx 10 mins)
- Invoke
BackgroundGeolocation.getLocations
and see how many locations have been returned from the plugin - Compile with 48 and follow the same route and time duration
- Invoke
BackgroundGeolocation.getLocations
and check the number of returned locations. In my case they were 10 times less.
Context
Debug logs
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (8 by maintainers)
Top GitHub Comments
Will do some more tests with two of my Android devices.
yes, I can confirm that. Will take look at it
this is not relevant in this context