flutter_background_geolocation
flutter_background_geolocation copied to clipboard
Location updates jumps
Your Environment
Flutter doctor :
✓] Flutter (Channel stable, 3.0.5, on macOS 11.6.1 20G224 darwin-x64, locale fr) • Flutter version 3.0.5 at /Users/macbook/Downloads/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision f1875d570e (9 weeks ago), 2022-07-13 11:24:16 -0700 • Engine revision e85ea0e79c • Dart version 2.17.6 • DevTools version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1) • Android SDK at /Users/macbook/Library/Android/sdk • Platform android-33, build-tools 33.0.0-rc1 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822) • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.0) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.11.3
PASTE_YOUR_CODE_HERE
``` here is my configuration :
bg.BackgroundGeolocation.ready(bg.Config(
desiredAccuracy: bg.Config.DESIRED_ACCURACY_NAVIGATION,
distanceFilter: 1.0,
autoSync: true,
stopOnTerminate: true,
startOnBoot: false,
enableHeadless: true,
debug: false,
logLevel: bg.Config.LOG_LEVEL_VERBOSE
)).then((bg.State state) {
if (!state.enabled) {
bg.BackgroundGeolocation.start();
}
});
Expected Behavior
Getting the location updates every seconds to get the exact route of the vehicle and give analysis on the ride
Actual Behavior
Sometimes the location updates jumps and we have straight lines
Steps to Reproduce
1.start the application 2.take a ride
Yes, you can expect the odd jump to occur. The real world is messy.
it’s up to you to filter your data as desired. See api docs Location.coords.accuracy
thank you for your response.
@christocracy my client sent me this screenshot like the location made a big jump :
Also he noticed when he is making a. phone call the position. is not recorded so each time he make a phone call there is jumps in the route.
And one last thing he said the speed is not correct : like.he was riding on 173 and the max speed returned while. recording was 53 maybe because some location where not recorded i think.
best regards.
@christocracy i have this logs i don't know if this help this is on foreground on ana android device. the locations updates stops for a while :
i call this on my splash screen :
bg.BackgroundGeolocation.ready(bg.Config(
desiredAccuracy: bg.Config.DESIRED_ACCURACY_NAVIGATION,
disableElasticity:true,
autoSync: true,
stopOnTerminate: true,
startOnBoot: false,
disableStopDetection: true,
enableHeadless: true,
debug: false,
logLevel: bg.Config.LOG_LEVEL_VERBOSE
));
and this on my tracking screen :
bg.BackgroundGeolocation.onLocation((bg.Location location) {
print('[location] - $location');
_updateCurrentPosition(location);
}, _onLocationError);
bg.BackgroundGeolocation.start();
bg.BackgroundGeolocation.changePace(true);
i print the state every 2 seconds :
** bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true]**
I/flutter (31583): [location] - [Location {odometer: 3474156.5, activity: {confidence: 100, type: still}, mock: true, extras: {}, battery: {level: 0.11, is_charging: true}, uuid: 5f3c1f59-ca2e-43c8-828d-463481450614, coords: {altitude: 126.4, heading: 92.57, latitude: 51.40409761, accuracy: 6.0, heading_accuracy: 0.1, altitude_accuracy: 0.1, speed_accuracy: 0.01, speed: 23.14, longitude: 10.20528861}, is_moving: true, timestamp: 2022-09-15T09:59:40.811Z}] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.s.LocationRequestService handleLocationResult] I/TSLocationManager(31583): ╔═════════════════════════════════════════════ I/TSLocationManager(31583): ║ getCurrentPosition LocationResult: 797 I/TSLocationManager(31583): ╠═════════════════════════════════════════════ I/TSLocationManager(31583): ╟─ 📍 Location[gps 51.40****,10.21**** hAcc=6 et=+7d14h42m8s296ms alt=126.44151471 vel=23.142796 bear=92.572136 vAcc=0 sAcc=0 bAcc=0 mock {Bundle[{}]}], age: 130ms, time: 1663235980811 I/flutter (31583): New location added with id : 670 I/TSLocationManager(31583): [c.t.l.l.TSLocationManager onSingleLocationResult] I/TSLocationManager(31583): 🔵 Acquired current position D/TSLocationManager(31583): [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 6.0 D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] D/TSLocationManager(31583): [c.t.l.s.LocationRequestService handleLocationResult] SingleLocationRequest 797 isFinished? true D/TSLocationManager(31583): [c.t.l.service.AbstractService onDestroy] D/TSLocationManager(31583): 🔴 LocationRequestService stopped D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] I/TSLocationManager(31583): [c.t.l.data.sqlite.b persist] I/TSLocationManager(31583): ✅ INSERT: e5d1377c-503b-410c-bdc7-8799eb50855b I/flutter (31583): [location] - [Location {odometer: 3474156.5, activity: {confidence: 100, type: still}, mock: true, extras: {}, battery: {level: 0.11, is_charging: true}, uuid: e5d1377c-503b-410c-bdc7-8799eb50855b, coords: {altitude: 126.4, heading: 92.57, latitude: 51.40409761, accuracy: 6.0, heading_accuracy: 0.1, altitude_accuracy: 0.1, speed_accuracy: 0.01, speed: 23.14, longitude: 10.20528861}, is_moving: true, timestamp: 2022-09-15T09:59:40.811Z}] I/flutter (31583): New location added with id : 671 E/libEGL (31583): Invalid file path for libcolorx-loader.so D/TSLocationManager(31583): [c.t.l.a.TSLocationManagerActivity execute] locationsettings D/TSLocationManager(31583): [c.t.l.adapter.TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -2 I/TSLocationManager(31583): [c.t.l.s.TSScheduleManager cancelOneShot] I/TSLocationManager(31583): ⏰ Cancel OneShot: TERMINATE_EVENT D/ColorViewRootUtil(31583): initSwipState, isDisplayCompatApp false D/ColorViewRootUtil(31583): mScreenHeight 1600, mScreenWidth 720 D/WindowManager(31583): Add to mViews: DecorView@f5a0783[TSLocationManagerActivity],pkg= com.traffilog.steyr D/TSLocationManager(31583): [c.t.l.a.TSLocationManagerActivity stop] eventCount: 0 V/OplusZoomWindowDecorViewHelper(31583): setLastReportedMergedConfiguration mZoomDisplayHeight: 1600 getDecorView.DecorView@f5a0783[TSLocationManagerActivity] I/TSLocationManager(31583): [c.t.l.s.TSScheduleManager oneShot] I/TSLocationManager(31583): ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) D/TSLocationManager(31583): [c.t.l.a.TSLocationManagerActivity onDestroy] I/flutter (31583): getting journeys I/flutter (31583): result [] I/traffilog.stey(31583): Background concurrent copying GC freed 197820(9542KB) AllocSpace objects, 12(624KB) LOS objects, 49% free, 9280KB/18MB, paused 150us total 127.371ms D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 799] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 800] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 801] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 802] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 803] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] I/TSLocationManager(31583): [c.t.l.scheduler.ScheduleEvent onOneShot] I/TSLocationManager(31583): ╔═════════════════════════════════════════════ I/TSLocationManager(31583): ║ ⏰ OneShot event fired: TERMINATE_EVENT I/TSLocationManager(31583): ╠═════════════════════════════════════════════ D/TSLocationManager(31583): [c.t.l.event.TerminateEvent$a a] D/TSLocationManager(31583): ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 804] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 805] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 806] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 807] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 808] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 809] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 810] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 811] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 812] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 813] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 814] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 815] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 816] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 817] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 818] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 819] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 820] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 821] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 822] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] D/TSLocationManager(31583): [c.t.locationmanager.util.c h] D/TSLocationManager(31583): ℹ️ LocationAuthorization: Permission granted I/flutter (31583): bg.BackgroundGeolocation.state [State enabled: true, isMoving: true, trackingMode: 1, desiredAccuracy: -2, distanceFilter: 10.0, odometer: 3474156.5, schedulerEnabled: false, foregroundService: true] D/TSLocationManager(31583): [c.t.l.service.AbstractService start] D/TSLocationManager(31583): 🎾 LocationRequestService [eventCount: 1] I/TSLocationManager(31583): [c.t.l.l.SingleLocationRequest startUpdatingLocation] I/TSLocationManager(31583): 🔵 [SingleLocationRequest start, action: 2, requestId: 823] D/TSLocationManager(31583): [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true]
my client sent me this screenshot like the location made a big jump :
Weird things can happen. It's up to you to filter locations as desired. See location.coords.accuracy
.
Also he noticed when he is making a. phone call the position. is not recorded so each time he make a phone call there is jumps in the route.
If the OS decides to stop providing location to your app for some reason (CPU/memory overloaded, battery low), there's nothing the plugin can do.
And one last thing he said the speed is not correct : like.he was riding on 173 and the max speed returned while. recording was 53 maybe because some location where not recorded i think.
Do you know what speed
is measured in?
@christocracy i just read speed from the location object and send it o the server and they return me in km/h.
also in my last thread i was recording location then i got this D/TSLocationManager(31583): 🔴 LocationRequestService stopped
after that location updates stopped the phone was in foreground. is there some option to change to prevent this from happening ?
thx
Speed is meters / second
D/TSLocationManager(31583): 🔴 LocationRequestService stopped
This is normal. When the device moves, the plugin tracks. When device is stationary, the plugin stops tracking.
If you wish to manually put the plugin into the moving state, see api docs .changePace. I also suggest you read all the available Config options.
thank you for your response. i will go throught the config options availables. best regards
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.