transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
655 stars 277 forks source link

`onLocation` fires too often and GPS icon flickers #1339

Closed robingenz closed 2 weeks ago

robingenz commented 2 years ago

Your Environment

await BackgroundGeolocation.ready(config);


## Expected Behavior
<!--- Tell us what should happen -->

I want to capture the user's location approximately every 30 seconds. 
The notification and the GPS icon should either appear every 30 seconds for a short moment or be permanently visible.

## Actual Behavior
<!--- Tell us what happens instead -->

The position is acquired several times per second (`onLocation` fires about 3 times per second) and the notification and GPS icon flicker continuously (see video).

https://user-images.githubusercontent.com/13857929/158978716-efd1c3aa-b293-4f2e-95da-bd58f692cfd4.mp4

## Steps to Reproduce
<!--- reproduce this issue; include code to reproduce, if relevant -->
1. Start Background Geolocation Tracking with the above configuration. 
2. Allow all required permissions.
3. As soon as the device moves, `onLocation` fires too often and the GPS icon flickers.

## Context
<!--- What were you trying to do? -->

We try to record the drives of our engineers with the help of this plugin. Unfortunately, we get much more location data than we need. Also, the user is bothered by the flickering of the notification and GPS icon.

## Debug logs
<!-- include iOS / Android logs
- ios XCode logs,
- use #getLog #emailLog methods (@see docs)
- Android: $ adb logcat
-->
<details>
    <summary>Logs</summary>

```<!-- Syntax highlighting:  DO NOT REMOVE -->
03-18 09:45:31.476 INFO [LoggerFacade$a a] 
╔═════════════════════════════════════════════
║ TSLocationManager version: 3.1.35 (391)
╠═════════════════════════════════════════════
╟─ OnePlus HD1903 @ 11 (cordova)
{
  "activityRecognitionInterval": 10000,
  "allowIdenticalLocations": false,
  "authorization": {},
  "autoSync": true,
  "autoSyncThreshold": 0,
  "backgroundPermissionRationale": {
    "title": "Erlauben Sie ENGINE4 auf den Standort dieses Geräts zuzugreifen",
    "message": "Diese App sammelt Standortdaten, um ihre Kundenfahrten aufzeichnen und die zurückgelegte Strecke berechnen zu können, auch wenn die App geschlossen oder nicht in Gebrauch ist. Bitte erlauben Sie der App hierfür, Ihren Standort die ganze Zeit über zu verwenden.",
    "positiveAction": "Change to \"{backgroundPermissionOptionLabel}\"",
    "negativeAction": ""
  },
  "batchSync": false,
  "configUrl": "",
  "debug": false,
  "deferTime": 0,
  "desiredAccuracy": -1,
  "desiredOdometerAccuracy": 100,
  "disableAutoSyncOnCellular": false,
  "disableElasticity": true,
  "disableLocationAuthorizationAlert": false,
  "disableMotionActivityUpdates": false,
  "disableStopDetection": false,
  "distanceFilter": 0,
  "elasticityMultiplier": 1,
  "enableHeadless": false,
  "enableTimestampMeta": false,
  "extras": {},
  "fastestLocationUpdateInterval": 30000,
  "foregroundService": true,
  "geofenceInitialTriggerEntry": true,
  "geofenceModeHighAccuracy": true,
  "geofenceProximityRadius": 1000,
  "geofenceTemplate": "",
  "headers": {},
  "headlessJobService": "com.transistorsoft.cordova.bggeo.BackgroundGeolocationHeadlessTask",
  "heartbeatInterval": 600,
  "httpRootProperty": "location",
  "httpTimeout": 60000,
  "isMoving": false,
  "locationAuthorizationRequest": "Any",
  "locationTemplate": "",
  "locationTimeout": 60,
  "locationUpdateInterval": 30000,
  "locationsOrderDirection": "ASC",
  "logLevel": 0,
  "logMaxDays": 3,
  "maxBatchSize": -1,
  "maxDaysToPersist": 1,
  "maxRecordsToPersist": 10,
  "method": "POST",
  "minimumActivityRecognitionConfidence": 75,
  "motionTriggerDelay": 0,
  "notification": {
    "layout": "",
    "title": "ENGINE4",
    "text": "App läuft im Hintergrund und übermittelt Ihre Position",
    "color": "#FFFFFF",
    "channelName": "Geolocation",
    "smallIcon": "",
    "largeIcon": "",
    "priority": -1,
    "sticky": false,
    "strings": {},
    "actions": []
  },
  "params": {},
  "persist": true,
  "persistMode": 2,
  "schedule": [],
  "scheduleUseAlarmManager": false,
  "speedJumpFilter": 300,
  "startOnBoot": false,
  "stationaryRadius": 25,
  "stopAfterElapsedMinutes": 0,
  "stopOnStationary": false,
  "stopOnTerminate": false,
  "stopTimeout": 5,
  "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
  "url": "",
  "useSignificantChangesOnly": true,
  "enabled": true,
  "schedulerEnabled": false,
  "trackingMode": 1,
  "odometer": 4597.04150390625,
  "isFirstBoot": false,
  "didLaunchInBackground": false,
  "didDeviceReboot": false
}
03-18 09:45:31.480 DEBUG [HttpService startMonitoringConnectivityChanges] 
  🎾  Start monitoring connectivity changes
03-18 09:45:31.482 INFO [LoggerFacade$a a] 
╔═════════════════════════════════════════════
║ DEVICE SENSORS
╠═════════════════════════════════════════════
╟─ ✅  ACCELEROMETER: {Sensor name="lsm6dsm Accelerometer Non-wakeup", vendor="STMicro", version=140554, type=1, maxRange=78.45318, resolution=0.0023928226, power=0.15, minDelay=2404}
╟─ ✅  GYROSCOPE: {Sensor name="lsm6dsm Gyroscope Non-wakeup", vendor="STMicro", version=140554, type=4, maxRange=34.90549, resolution=0.0012216945, power=0.555, minDelay=2404}
╟─ ✅  MAGNETOMETER: {Sensor name="mmc5603x Magnetometer Non-wakeup", vendor="memsic", version=10063, type=2, maxRange=3000.0044, resolution=0.0976, power=1.0, minDelay=10000}
╟─ ✅  SIGNIFICANT_MOTION: {Sensor name="sns_smd  Wakeup", vendor="qualcomm", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.025, minDelay=-1}
╚═════════════════════════════════════════════
03-18 09:45:31.483 INFO [LoggerFacade$a a] 
╔═════════════════════════════════════════════
║ BootReceiver: com.mobilefunction.mfapp.prod
╠═════════════════════════════════════════════
╟─ android.intent.action.MY_PACKAGE_REPLACED

03-18 09:45:31.491 INFO [LoggerFacade$a a] 
  ✅  Google Play Services: connected (version code:12451000)
03-18 09:45:31.504 DEBUG [LoggerFacade$a a] 
  ℹ️  Load last odometer location: Location[TSLocationManager 47,679181,9,162962 hAcc=15 t=?!? et=?!? vAcc=??? sAcc=??? bAcc=??? {Bundle[{odometer=4597.0415}]}]
03-18 09:45:31.506 DEBUG [HttpService a] 
╔═════════════════════════════════════════════
║ 📶  Connectivity change: connected? true
╠═════════════════════════════════════════════

03-18 09:45:31.513 INFO [BackgroundGeolocation d] 
  🎾  Start monitoring location-provider changes
03-18 09:45:31.521 DEBUG [b prune] 
  ℹ️  PRUNE -1 days
03-18 09:45:31.577 DEBUG [TSGeofenceManager c] ℹ️  Persist monitored geofences: []
03-18 09:45:33.197 INFO [GeofenceDAO destroyAll] ✅  
03-18 09:45:33.697 DEBUG [BackgroundGeolocation a] 
  🔴  Cleared callbacks
03-18 09:45:33.825 DEBUG [TSLocationManager clearLastOdometerLocation] 
  ℹ️  Clear last odometer location
03-18 09:45:33.827 DEBUG [TSGeofenceManager c] ℹ️  Persist monitored geofences: []
03-18 09:45:33.828 DEBUG [TSGeofenceManager e] 
  🔴  Stop monitoring geofences
03-18 09:45:33.829 INFO [ActivityRecognitionService c] 
  🔴  Stop motion-activity updates
03-18 09:45:33.833 INFO [HeartbeatService c] 
  🔴  Stop heartbeat
03-18 09:45:33.835 DEBUG [HttpService stopMonitoringConnectivityChanges] 
  🔴  Stop monitoring connectivity changes
03-18 09:45:33.864 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:45:33.891 DEBUG [AbstractService a] ⚙️︎  finish GeofencingService [eventCount: 0, sticky: false]
03-18 09:45:33.905 DEBUG [AbstractService a] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
03-18 09:45:33.907 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:45:33.909 DEBUG [AbstractService onDestroy] 
  🔴  GeofencingService destroyed
03-18 09:45:33.912 DEBUG [AbstractService onDestroy] 
  🔴  ActivityRecognitionService destroyed
03-18 09:45:34.031 DEBUG [TSConfig d] ℹ️   Persist config, dirty: [backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, desiredAccuracy, disableElasticity, distanceFilter, extras, fastestLocationUpdateInterval, geofenceModeHighAccuracy, headers, headlessJobService, heartbeatInterval, locationAuthorizationRequest, locationUpdateInterval, maxRecordsToPersist, notification, notification.title, notification.text, notification.color, notification.priority, notification.channelName, params, schedule, stopOnTerminate, useSignificantChangesOnly]
03-18 09:45:34.036 DEBUG [TSConfig d] ℹ️   Persist config, dirty: [headlessJobService]
03-18 09:45:34.053 DEBUG [TSConfig d] ℹ️   Persist config, dirty: [extras, headers, headlessJobService, params, schedule]
03-18 09:45:34.059 DEBUG [TSConfig d] ℹ️   Persist config, dirty: [backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, desiredAccuracy, disableElasticity, distanceFilter, fastestLocationUpdateInterval, geofenceModeHighAccuracy, headlessJobService, heartbeatInterval, locationAuthorizationRequest, locationUpdateInterval, maxRecordsToPersist, notification, notification.title, notification.text, notification.color, notification.priority, notification.channelName, stopOnTerminate, useSignificantChangesOnly]
03-18 09:45:34.099 INFO [c g] 
  🔵  LocationAuthorization: Requesting Background permission
03-18 09:45:35.938 INFO [c$k onPermissionGranted] 
  ✅  LocationAuthorization: Permission granted
03-18 09:45:35.959 INFO [ActivityRecognitionService b] 
  🎾  Start motion-activity updates
03-18 09:45:35.964 DEBUG [HttpService startMonitoringConnectivityChanges] 
  🎾  Start monitoring connectivity changes
03-18 09:45:35.967 DEBUG [a c] 
  🎾  Start monitoring powersave changes
03-18 09:45:35.971 DEBUG [HttpService a] 
╔═════════════════════════════════════════════
║ 📶  Connectivity change: connected? true
╠═════════════════════════════════════════════

03-18 09:45:35.972 INFO [HeartbeatService b] 
  🎾  Start heartbeat (600s)
03-18 09:45:35.992 DEBUG [TSLocationManagerActivity execute] locationsettings
03-18 09:45:35.994 DEBUG [c h] 
  ℹ️  LocationAuthorization: Permission granted
03-18 09:45:35.994 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
03-18 09:45:35.994 INFO [TrackingService a] 
  🔵  setPace: false → false
03-18 09:45:36.049 DEBUG [TSLocationManagerActivity stop] eventCount: 0
03-18 09:45:36.070 DEBUG [AbstractService a] 
  🎾  ActivityRecognitionService [eventCount: 1]
03-18 09:45:36.075 DEBUG [ActivityRecognitionService a] 
  🚘 ️DetectedActivity [type=STILL, confidence=100]
03-18 09:45:36.079 DEBUG [AbstractService a] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
03-18 09:45:36.123 DEBUG [TSLocationManagerActivity onDestroy] 
03-18 09:45:37.083 DEBUG [AbstractService onDestroy] 
  🔴  ActivityRecognitionService destroyed
03-18 09:45:38.437 DEBUG [AbstractService a] 
  🎾  LocationRequestService [eventCount: 1]
03-18 09:45:38.441 INFO [LocationRequestService b] 
╔═════════════════════════════════════════════
║ motionchange LocationResult: 1
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679161,9,162970 hAcc=17 et=+30d13h36m27s972ms alt=466.6000061035156 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 2279ms, time: 1647593136160

03-18 09:45:38.452 INFO [TSLocationManager onSingleLocationResult] 
  🔵  Acquired motionchange position, isMoving: false
03-18 09:45:38.453 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 16.573
03-18 09:45:38.458 DEBUG [AbstractService a] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
03-18 09:45:38.463 DEBUG [AbstractService onDestroy] 
  🔴  LocationRequestService destroyed
03-18 09:45:38.508 DEBUG [LocationRequestService b] SingleLocationRequest 1 isFinished? true
03-18 09:45:38.511 INFO [b persist] 
  ✅  INSERT: 3bf7abd8-42cc-4bbd-85f9-d502f60e4991
03-18 09:45:38.512 DEBUG [AbstractService a] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
03-18 09:45:38.516 INFO [ActivityRecognitionService b] 
  🎾  Start motion-activity updates
03-18 09:45:38.517 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 
  🎾  Start monitoring stationary region (radius: 150.0m 47.6791613,9.1629704 hAcc=16.573)
03-18 09:45:38.534 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:45:38.580 DEBUG [AbstractService a] 
  🎾  ActivityRecognitionService [eventCount: 1]
03-18 09:45:38.582 DEBUG [ActivityRecognitionService a] 
  🚘 ️DetectedActivity [type=STILL, confidence=100]
03-18 09:45:38.584 DEBUG [AbstractService a] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
03-18 09:45:39.586 DEBUG [AbstractService onDestroy] 
  🔴  ActivityRecognitionService destroyed
03-18 09:45:53.580 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
03-18 09:46:03.733 INFO [ScheduleEvent onOneShot] 
╔═════════════════════════════════════════════
║ ⏰ OneShot event fired: TERMINATE_EVENT
╠═════════════════════════════════════════════

03-18 09:46:03.746 DEBUG [TerminateEvent <init>] 
  ℹ️  TERMINATE_EVENT ignored (MainActivity is still active).
03-18 09:46:36.517 DEBUG [AbstractService a] 
  🎾  ActivityRecognitionService [eventCount: 1]
03-18 09:46:36.519 INFO [ActivityRecognitionService a] 
╔═════════════════════════════════════════════
║ Motion Transition Result
╠═════════════════════════════════════════════
╟─ 🔴  EXIT: walking
╟─ 🎾  ENTER: still
╚═════════════════════════════════════════════
03-18 09:46:36.519 DEBUG [AbstractService a] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
03-18 09:46:36.795 DEBUG [AbstractService onDestroy] 
  🔴  ActivityRecognitionService destroyed
03-18 09:48:04.318 DEBUG [AbstractService a] 
  🎾  ActivityRecognitionService [eventCount: 1]
03-18 09:48:04.340 DEBUG [TSConfig d] ℹ️   Persist config, dirty: [isMoving]
03-18 09:48:04.345 INFO [HeartbeatService c] 
  🔴  Stop heartbeat
03-18 09:48:04.348 DEBUG [TSGeofenceManager stopMonitoringStationaryRegion] 
  🔴  Stop monitoring stationary region
03-18 09:48:04.351 DEBUG [c h] 
  ℹ️  LocationAuthorization: Permission granted
03-18 09:48:04.360 INFO [TrackingService a] 
  🔵  setPace: false → true
03-18 09:48:04.361 INFO [ActivityRecognitionService a] 
╔═════════════════════════════════════════════
║ Motion Transition Result
╠═════════════════════════════════════════════
╟─ 🔴  EXIT: still
╟─ 🎾  ENTER: walking
╚═════════════════════════════════════════════
03-18 09:48:04.362 DEBUG [AbstractService a] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
03-18 09:48:04.587 DEBUG [HttpService a] 
╔═════════════════════════════════════════════
║ 📶  Connectivity change: connected? false
╠═════════════════════════════════════════════

03-18 09:48:04.756 DEBUG [AbstractService onDestroy] 
  🔴  ActivityRecognitionService destroyed
03-18 09:48:05.515 DEBUG [HttpService a] 
╔═════════════════════════════════════════════
║ 📶  Connectivity change: connected? true
╠═════════════════════════════════════════════

03-18 09:49:04.384 WARN [SingleLocationRequest finish] 
  ⚠️  timeout: 2
03-18 09:49:04.385 WARN [TSLocationManager onLocationTimeout] 
  ⚠️  TSLocationManager received location timeout
03-18 09:49:04.386 WARN [BackgroundGeolocation _onLocationError] 
  ⚠️  Location error: 408
03-18 09:49:04.388 INFO [TSLocationManager requestLocationUpdates] 
  🎾  Location-services: ON
03-18 09:49:04.391 INFO [TSLocationManager requestLocationUpdates] 
  🎾  Location-services: ON
03-18 09:49:04.393 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
03-18 09:49:04.477 DEBUG [AbstractService a] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
03-18 09:49:04.491 DEBUG [AbstractService onDestroy] 
  🔴  LocationRequestService destroyed
03-18 09:50:29.500 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:50:29.503 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,678661,9,162168 hAcc=21 et=+30d13h41m17s546ms alt=454.79998779296875 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 3768ms, time: 1647593425734

03-18 09:50:29.504 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:50:29.504 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:50:29.506 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 18.8115
03-18 09:50:29.506 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 81.96582, apparent speed: 0.28305656
03-18 09:50:29.507 DEBUG [TSLocationManager incrementOdometer] Odometer: 4679.0073
03-18 09:50:29.524 INFO [b persist] 
  ✅  INSERT: 93193c06-2d75-4c3f-870e-2a7184835a51
03-18 09:50:29.546 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:50:29.764 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:50:59.690 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:50:59.696 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,678926,9,161790 hAcc=6 et=+30d13h41m51s448ms alt=454.79998779296875 vel=0.93 bear=328.0 vAcc=2 sAcc=1 bAcc=56 {Bundle[EMPTY_PARCEL]}], age: 55ms, time: 1647593460000

03-18 09:50:59.697 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:50:59.697 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:50:59.698 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 40.89539, apparent speed: 1.2062825
03-18 09:50:59.698 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 16.573
03-18 09:50:59.699 DEBUG [TSLocationManager incrementOdometer] Odometer: 4719.903
03-18 09:50:59.748 INFO [b persist] 
  ✅  INSERT: 2b2ca552-e64e-4050-b311-5e5644b82b9b
03-18 09:50:59.757 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:50:59.951 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:51:29.691 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:51:29.697 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679158,9,162302 hAcc=10 et=+30d13h42m21s433ms alt=454.79998779296875 vel=0.4 bear=25.0 vAcc=2 sAcc=1 bAcc=84 {Bundle[EMPTY_PARCEL]}], age: 72ms, time: 1647593490000

03-18 09:51:29.699 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:51:29.699 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 46.252823, apparent speed: 1.542532
03-18 09:51:29.699 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:51:29.700 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 13.402
03-18 09:51:29.700 DEBUG [TSLocationManager incrementOdometer] Odometer: 4766.156
03-18 09:51:29.711 INFO [b persist] 
  ✅  INSERT: 7ef28186-1192-4ac1-99a0-7d37da10c0c0
03-18 09:51:29.728 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:51:29.953 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:51:49.849 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
03-18 09:51:59.963 INFO [ScheduleEvent onOneShot] 
╔═════════════════════════════════════════════
║ ⏰ OneShot event fired: TERMINATE_EVENT
╠═════════════════════════════════════════════

03-18 09:51:59.971 DEBUG [TerminateEvent <init>] 
  ℹ️  TERMINATE_EVENT ignored (MainActivity is still active).
03-18 09:53:10.674 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:53:10.676 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679958,9,161208 hAcc=10 et=+30d13h44m2s441ms alt=456.5 vel=0.0 vAcc=3 sAcc=0 bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 45ms, time: 1647593591000

03-18 09:53:10.676 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:53:10.677 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:53:10.678 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 121.10221, apparent speed: 1.1989487
03-18 09:53:10.680 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 9.913
03-18 09:53:10.683 DEBUG [TSLocationManager incrementOdometer] Odometer: 4887.258
03-18 09:53:10.730 INFO [b persist] 
  ✅  INSERT: 9bf30547-84f4-4e40-82c1-32a4516f9bdf
03-18 09:53:10.748 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:53:10.933 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:53:40.672 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:53:40.674 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679877,9,161868 hAcc=8 et=+30d13h44m32s440ms alt=456.79998779296875 vel=1.12 bear=136.0 vAcc=2 sAcc=2 bAcc=63 {Bundle[EMPTY_PARCEL]}], age: 44ms, time: 1647593621000

03-18 09:53:40.674 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:53:40.675 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 50.381657, apparent speed: 1.6794446
03-18 09:53:40.675 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:53:40.675 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 10.0720005
03-18 09:53:40.676 DEBUG [TSLocationManager incrementOdometer] Odometer: 4937.6396
03-18 09:53:40.682 INFO [b persist] 
  ✅  INSERT: 0915207c-6970-423f-8263-a9c253bbb26d
03-18 09:53:40.703 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:53:40.936 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:54:10.680 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:54:10.682 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679884,9,161935 hAcc=9 et=+30d13h45m2s434ms alt=456.3999938964844 vel=0.25 bear=133.0 vAcc=2 sAcc=1 bAcc=91 {Bundle[EMPTY_PARCEL]}], age: 59ms, time: 1647593651000

03-18 09:54:10.683 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:54:10.684 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:54:10.685 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 9.913
03-18 09:54:10.693 INFO [b persist] 
  ✅  INSERT: 3f9351c3-aff2-4438-8309-584cd90d85b8
03-18 09:54:10.704 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:54:10.938 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:54:41.675 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:54:41.678 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679830,9,162213 hAcc=7 et=+30d13h45m33s429ms alt=457.29998779296875 vel=0.79 bear=113.0 vAcc=3 sAcc=1 bAcc=6 {Bundle[EMPTY_PARCEL]}], age: 59ms, time: 1647593682000

03-18 09:54:41.679 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:54:41.679 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:54:41.679 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 21.77376, apparent speed: 0.70249265
03-18 09:54:41.680 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 10.0720005
03-18 09:54:41.680 DEBUG [TSLocationManager incrementOdometer] Odometer: 4964.093
03-18 09:54:41.697 INFO [b persist] 
  ✅  INSERT: 2d6d6e55-b893-4fa3-8f9e-794ca3b16079
03-18 09:54:41.703 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:54:41.934 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:54:44.603 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
03-18 09:54:47.455 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:54:47.463 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679830,9,162213 hAcc=7 et=+30d13h45m36s588ms alt=457.0 vel=0.79 bear=113.0 vAcc=2 sAcc=1 bAcc=6 {Bundle[EMPTY_PARCEL]}], age: 2685ms, time: 1647593684776
╟─ 📍  Location[fused 47,679829,9,162216 hAcc=7 et=+30d13h45m38s139ms alt=456.8999938964844 vel=0.77127624 bear=113.45973 vAcc=2 sAcc=1 bAcc=6 {Bundle[EMPTY_PARCEL]}], age: 1135ms, time: 1647593686327

03-18 09:54:47.465 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:54:47.465 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:54:47.466 DEBUG [TSLocationManager onLocationResult] 
  ℹ️  IGNORED: same as last location
03-18 09:54:47.467 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 10.231
03-18 09:54:47.547 INFO [b persist] 
  ✅  INSERT: 8922e92f-49cf-4c5e-af2c-dc91f2dcd982
03-18 09:54:47.574 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:54:47.728 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:54:54.735 INFO [ScheduleEvent onOneShot] 
╔═════════════════════════════════════════════
║ ⏰ OneShot event fired: TERMINATE_EVENT
╠═════════════════════════════════════════════

03-18 09:54:54.746 DEBUG [TerminateEvent <init>] 
  ℹ️  TERMINATE_EVENT ignored (MainActivity is still active).
03-18 09:56:39.993 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:40.010 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679732,9,162040 hAcc=26 et=+30d13h47m30s662ms alt=456.79998779296875 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 1145ms, time: 1647593798850

03-18 09:56:40.011 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:40.011 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:40.013 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 10.0720005
03-18 09:56:40.015 DEBUG [TSLocationManager incrementOdometer] Odometer: 4981.0347
03-18 09:56:40.025 INFO [b persist] 
  ✅  INSERT: d46ae206-53cd-4395-9626-67b8c60ee6b0
03-18 09:56:40.037 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:40.291 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:40.727 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:40.730 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679728,9,161967 hAcc=18 et=+30d13h47m32s428ms alt=456.79998779296875 vel=0.34609845 bear=113.228165 vAcc=2 sAcc=1 bAcc=12 {Bundle[EMPTY_PARCEL]}], age: 111ms, time: 1647593801000

03-18 09:56:40.733 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:40.733 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:40.735 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 9.913
03-18 09:56:40.749 INFO [b persist] 
  ✅  INSERT: 9e68201d-d8eb-4e6a-9dcd-558a23813db5
03-18 09:56:40.764 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:41.022 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:42.123 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:42.128 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679728,9,161967 hAcc=20 et=+30d13h47m32s693ms alt=456.79998779296875 vel=0.34603122 bear=113.23272 vAcc=1 sAcc=1 bAcc=12 {Bundle[EMPTY_PARCEL]}], age: 1243ms, time: 1647593800881

03-18 09:56:42.128 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:42.134 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:42.137 INFO [b persist] 
  ✅  INSERT: 753570b6-292c-4af1-bd18-f2640dae1a59
03-18 09:56:42.149 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:42.435 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:43.394 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:43.398 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679727,9,161972 hAcc=81 et=+30d13h47m34s14ms alt=456.79998779296875 vel=0.34582 bear=113.23963 vAcc=3 sAcc=1 bAcc=12 {Bundle[EMPTY_PARCEL]}], age: 1195ms, time: 1647593802202

03-18 09:56:43.398 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:43.399 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 10.231
03-18 09:56:43.402 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:43.406 INFO [b persist] 
  ✅  INSERT: 4345d9ee-91be-45ee-ae94-9d34cc1392a4
03-18 09:56:43.419 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:43.711 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:44.617 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:44.619 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679725,9,161978 hAcc=137 et=+30d13h47m35s257ms alt=456.79998779296875 vel=0.3437755 bear=113.26599 vAcc=2 sAcc=1 bAcc=12 {Bundle[EMPTY_PARCEL]}], age: 1173ms, time: 1647593803445

03-18 09:56:44.619 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:44.620 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:44.621 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 10.231
03-18 09:56:44.628 INFO [b persist] 
  ✅  INSERT: 3807a135-e905-46b9-a3d1-4ba42496378a
03-18 09:56:44.644 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:44.912 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:45.862 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:45.874 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679724,9,161983 hAcc=192 et=+30d13h47m36s483ms alt=457.1999816894531 vel=0.33989868 bear=113.30151 vAcc=1 sAcc=1 bAcc=12 {Bundle[EMPTY_PARCEL]}], age: 1201ms, time: 1647593804671

03-18 09:56:45.875 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:45.875 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:45.876 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 9.913
03-18 09:56:45.880 INFO [b persist] 
  ✅  INSERT: 6fa6aa43-9209-4fe0-8e88-4c55482a4b0f
03-18 09:56:45.896 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:46.162 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:47.228 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:47.230 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679722,9,161988 hAcc=249 et=+30d13h47m37s767ms alt=457.29998779296875 vel=0.33418754 bear=113.34267 vAcc=2 sAcc=1 bAcc=12 {Bundle[EMPTY_PARCEL]}], age: 1274ms, time: 1647593805955

03-18 09:56:47.231 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:47.231 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 18.349
03-18 09:56:47.236 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:47.237 INFO [b persist] 
  ✅  INSERT: 10b8248b-c773-4cd3-800b-f5a33ae5060c
03-18 09:56:47.258 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:47.526 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:48.692 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:48.694 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679721,9,161993 hAcc=310 et=+30d13h47m39s121ms alt=457.1999816894531 vel=0.32662126 bear=113.38815 vAcc=4 sAcc=1 bAcc=12 {Bundle[EMPTY_PARCEL]}], age: 1384ms, time: 1647593807309

03-18 09:56:48.694 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:48.695 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 26.18
03-18 09:56:48.695 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:48.704 INFO [b persist] 
  ✅  INSERT: e323b439-95ae-4235-8523-360dc856dbf4
03-18 09:56:48.717 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:48.986 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:49.975 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:49.977 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679777,9,161874 hAcc=32 et=+30d13h47m40s576ms alt=456.79998779296875 vel=1.8710958 bear=306.73975 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 1213ms, time: 1647593808764

03-18 09:56:49.978 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:49.979 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:49.979 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 31.576
03-18 09:56:49.985 INFO [b persist] 
  ✅  INSERT: 5d681342-bd3a-4864-a472-d59405b3fc80
03-18 09:56:49.999 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:50.266 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:51.705 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:51.712 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679755,9,161979 hAcc=23 et=+30d13h47m43s435ms alt=456.79998779296875 vel=0.35729328 bear=111.95521 vAcc=2 sAcc=0 bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 87ms, time: 1647593812000

03-18 09:56:51.712 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:51.713 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 31.576
03-18 09:56:51.713 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:51.752 INFO [b persist] 
  ✅  INSERT: 4401a769-1e04-4d50-88be-173a85bbb72a
03-18 09:56:51.784 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:52.013 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:52.679 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:52.680 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679770,9,161983 hAcc=18 et=+30d13h47m44s433ms alt=456.79998779296875 vel=0.086798504 bear=132.51411 vAcc=2 sAcc=1 bAcc=67 {Bundle[EMPTY_PARCEL]}], age: 58ms, time: 1647593813000

03-18 09:56:52.681 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 31.576
03-18 09:56:52.681 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:52.684 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:52.686 INFO [b persist] 
  ✅  INSERT: 5ba65512-0b50-4396-8db7-e2086027c7f8
03-18 09:56:52.702 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:52.986 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:53.755 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:53.759 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679776,9,161979 hAcc=19 et=+30d13h47m45s431ms alt=457.1999816894531 vel=0.016102271 bear=142.86955 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 138ms, time: 1647593814000

03-18 09:56:53.760 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:53.760 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 31.576
03-18 09:56:53.760 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:53.764 INFO [b persist] 
  ✅  INSERT: 1845f230-de87-4e89-99bb-9a6d7d925e95
03-18 09:56:53.780 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:54.045 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:54.558 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:54.562 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679778,9,161973 hAcc=17 et=+30d13h47m46s289ms alt=457.1999816894531 vel=0.080746524 bear=240.00662 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 83ms, time: 1647593814477

03-18 09:56:54.563 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:54.563 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:54.564 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 31.576
03-18 09:56:54.573 INFO [b persist] 
  ✅  INSERT: 816f7da2-c822-4be7-ae97-92457f498159
03-18 09:56:54.590 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:54.857 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:55.361 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:55.365 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679783,9,161962 hAcc=15 et=+30d13h47m47s78ms alt=457.1999816894531 vel=0.13960421 bear=269.07626 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 97ms, time: 1647593815266

03-18 09:56:55.367 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:55.367 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:55.368 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 31.576
03-18 09:56:55.378 INFO [b persist] 
  ✅  INSERT: 3fe5f288-b1b8-4375-9a34-752e82035b30
03-18 09:56:55.392 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:55.672 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:56.096 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:56.097 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679788,9,161944 hAcc=13 et=+30d13h47m47s828ms alt=457.1999816894531 vel=0.21824035 bear=288.38718 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 80ms, time: 1647593816016

03-18 09:56:56.098 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:56.098 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 22.614
03-18 09:56:56.098 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:56.102 INFO [b persist] 
  ✅  INSERT: 24cbeef0-aa2a-4daf-98a2-4ca3660d2e64
03-18 09:56:56.119 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:56.393 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:56.688 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:56.690 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679790,9,161933 hAcc=13 et=+30d13h47m48s430ms alt=457.1999816894531 vel=0.25682244 bear=291.1486 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 70ms, time: 1647593817000

03-18 09:56:56.690 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:56.691 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:56.691 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 18.521
03-18 09:56:56.701 INFO [b persist] 
  ✅  INSERT: 55d98d2f-34e5-4f4f-88bc-0b3f0d37f84e
03-18 09:56:56.713 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:57.018 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:57.513 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:57.514 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:57.514 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679792,9,161917 hAcc=11 et=+30d13h47m49s249ms alt=457.1999816894531 vel=0.3229613 bear=293.34317 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 76ms, time: 1647593817437

03-18 09:56:57.515 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:57.515 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 18.093
03-18 09:56:57.519 INFO [b persist] 
  ✅  INSERT: 36c3a222-808e-4dd9-82d8-6c80b6109964
03-18 09:56:57.536 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:57.813 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:58.297 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:58.299 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679795,9,161897 hAcc=11 et=+30d13h47m50s39ms alt=456.79998779296875 vel=0.37975058 bear=293.72733 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 71ms, time: 1647593818227

03-18 09:56:58.299 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:58.300 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 16.816
03-18 09:56:58.304 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:58.305 INFO [b persist] 
  ✅  INSERT: e7b4997f-cf96-46e7-8255-c7921fa46e18
03-18 09:56:58.318 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:58.601 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:58.971 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:58.974 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679796,9,161885 hAcc=9 et=+30d13h47m50s710ms alt=456.79998779296875 vel=0.41650033 bear=294.39136 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 76ms, time: 1647593818898

03-18 09:56:58.974 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:58.975 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:58.975 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 14.884
03-18 09:56:58.979 INFO [b persist] 
  ✅  INSERT: 6e16d1fa-bdc6-44d2-ae52-18532917c212
03-18 09:56:58.985 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:59.266 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:56:59.691 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:56:59.692 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679798,9,161875 hAcc=9 et=+30d13h47m51s421ms alt=456.79998779296875 vel=0.44697106 bear=294.81778 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 82ms, time: 1647593819609

03-18 09:56:59.692 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:56:59.693 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 12.69
03-18 09:56:59.694 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:56:59.697 INFO [b persist] 
  ✅  INSERT: f73075e2-246d-4a57-85dc-313f2216a2cf
03-18 09:56:59.710 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:56:59.993 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:57:00.458 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:57:00.459 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679801,9,161862 hAcc=8 et=+30d13h47m52s171ms alt=456.79998779296875 vel=0.49215555 bear=295.23697 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 100ms, time: 1647593820359

03-18 09:57:00.460 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:57:00.460 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:57:00.460 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 12.871
03-18 09:57:00.465 INFO [b persist] 
  ✅  INSERT: 50e7a3fc-a4bd-4a72-aa10-5d2066d64613
03-18 09:57:00.485 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:57:00.758 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:57:01.148 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:57:01.151 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679803,9,161850 hAcc=7 et=+30d13h47m52s862ms alt=456.79998779296875 vel=0.5069319 bear=295.06085 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 100ms, time: 1647593821050

03-18 09:57:01.153 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:57:01.153 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 10.926
03-18 09:57:01.153 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:57:01.157 INFO [b persist] 
  ✅  INSERT: 9d271421-5675-4d7e-81b1-314bef6f327b
03-18 09:57:01.167 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:57:01.454 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:57:01.717 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:57:01.723 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679805,9,161845 hAcc=7 et=+30d13h47m53s431ms alt=456.79998779296875 vel=0.5044558 bear=294.91818 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 101ms, time: 1647593822000

03-18 09:57:01.724 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:57:01.724 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:57:01.725 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 10.857
03-18 09:57:01.726 DEBUG [TSLocationManager incrementOdometer] Odometer: 4997.8086
03-18 09:57:01.735 INFO [b persist] 
  ✅  INSERT: c78e039a-c0a4-484c-9d44-41999e71f5b8
03-18 09:57:01.755 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:57:02.008 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:57:02.646 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:57:02.650 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679808,9,161834 hAcc=7 et=+30d13h47m54s381ms alt=456.79998779296875 vel=0.52556187 bear=295.15192 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 78ms, time: 1647593822569

03-18 09:57:02.651 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

03-18 09:57:02.651 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 7.102
03-18 09:57:02.652 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:57:02.658 INFO [b persist] 
  ✅  INSERT: 34dd669f-9555-4f46-8bbc-f0ac0238a3d3
03-18 09:57:02.673 DEBUG [b a] 
  ℹ️  SHRINK: 10
03-18 09:57:02.926 DEBUG [AbstractService onDestroy] 
  🔴  TrackingService destroyed
03-18 09:57:03.367 DEBUG [AbstractService a] 
  🎾  TrackingService [eventCount: 1]
03-18 09:57:03.374 DEBUG [TrackingService b] 
╔═════════════════════════════════════════════
║ TrackingService: LocationResult
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 47,679812,9,161819 hAcc=6 et=+30d13h47m55s112ms alt=456.8999938964844 vel=0.56525254 bear=295.7057 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 73ms, time: 1647593823300

03-18 09:57:03.375 DEBUG [AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
03-18 09:57:03.375 DEBUG [TSLocationManager onLocationResult] 
╔═════════════════════════════════════════════
║ Process LocationResult
╠═════════════════════════════════════════════

(Can't attach all logs unfortunately, as GitHub says: There was an error creating your Issue: body is too long, body is too long (maximum is 65536 characters).)

robingenz commented 2 years ago

This is the entire log: logs.txt

christocracy commented 2 years ago

Try using a distanceFilter > 0 (eg: 100).

robingenz commented 2 years ago

Thank you for your response!

According to the documentation distanceFilter must be set to 0, otherwise locationUpdateInterval cannot be used, because distanceFilter overwrites the value of locationUpdateInterval.

(property) Config.locationUpdateInterval?: number | undefined
[Android only] Set the desired interval for active location updates, in milliseconds.

@break

⚠️ Note:
To use locationUpdateInterval you must also configure [[distanceFilter]] 0, since [[distanceFilter]] overrides locationUpdateInterval.

Unfortunately, since we want to get the location about every 30 seconds (regardless of speed, etc.), this does not seem to be a solution for us.

What else can we do?

christocracy commented 2 years ago

Try and see what happens on a 1km walk (not simulated location)

robingenz commented 2 years ago

Thank you again for your response!

I tried it as you recommended and walked about 1 km with distanceFilter: 100.

Here is the whole config:

const config = {
    activityType: 1,
    allowIdenticalLocations: false,
    backgroundPermissionRationale: {
        title: 'Erlauben Sie ENGINE4 auf den Standort dieses Geräts zuzugreifen', 
        message: 'Diese App sammelt Standortdaten, um ihre Kundenfahrten aufzeichnen und die zurückgelegte Strecke berechnen zu können, auch wenn die App geschlossen oder nicht in Gebrauch ist. Bitte erlauben Sie der App hierfür, Ihren Standort die ganze Zeit über zu verwenden.'
    },
    debug: false,
    desiredAccuracy: -1,
    disableElasticity: true,
    distanceFilter: 100,
    fastestLocationUpdateInterval: 30000,
    foregroundService: true,
    geofenceModeHighAccuracy: true,
    heartbeatInterval: 600,
    locationAuthorizationRequest: "Any",
    locationUpdateInterval: 30000,
    maxDaysToPersist: 1,
    maxRecordsToPersist: 10,
    notification: {
        title: 'ENGINE4', 
        text: 'App läuft im Hintergrund und übermittelt Ihre Position', 
        color: '#FFFFFF', 
        channelName: 'Geolocation', 
        priority: -1
    },
    preventSuspend: true,
    startOnBoot: false,
    stationaryRadius: 25,
    stopOnTerminate: false,
    useSignificantChangesOnly: true
};

await BackgroundGeolocation.ready(config);

Here are the logs:

Logs ``` 03-19 15:42:10.747 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.1.35 (391) ╠═════════════════════════════════════════════ ╟─ OnePlus HD1903 @ 11 (cordova) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": false, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Erlauben Sie ENGINE4 auf den Standort dieses Geräts zuzugreifen", "message": "Diese App sammelt Standortdaten, um ihre Kundenfahrten aufzeichnen und die zurückgelegte Strecke berechnen zu können, auch wenn die App geschlossen oder nicht in Gebrauch ist. Bitte erlauben Sie der App hierfür, Ihren Standort die ganze Zeit über zu verwenden.", "positiveAction": "Change to \"{backgroundPermissionOptionLabel}\"", "negativeAction": "" }, "batchSync": false, "configUrl": "", "debug": false, "deferTime": 0, "desiredAccuracy": -1, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": true, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": false, "disableStopDetection": false, "distanceFilter": 0, "elasticityMultiplier": 1, "enableHeadless": false, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": 30000, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": true, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": {}, "headlessJobService": "com.transistorsoft.cordova.bggeo.BackgroundGeolocationHeadlessTask", "heartbeatInterval": 600, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": false, "locationAuthorizationRequest": "Any", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 30000, "locationsOrderDirection": "ASC", "logLevel": 0, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": 10, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "ENGINE4", "text": "App läuft im Hintergrund und übermittelt Ihre Position", "color": "#FFFFFF", "channelName": "Geolocation", "smallIcon": "", "largeIcon": "", "priority": -1, "sticky": false, "strings": {}, "actions": [] }, "params": {}, "persist": true, "persistMode": 2, "schedule": [], "scheduleUseAlarmManager": false, "speedJumpFilter": 300, "startOnBoot": false, "stationaryRadius": 25, "stopAfterElapsedMinutes": 0, "stopOnStationary": false, "stopOnTerminate": false, "stopTimeout": 5, "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking", "url": "", "useSignificantChangesOnly": true, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 5277.46533203125, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 03-19 15:42:10.749 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ BootReceiver: com.mobilefunction.mfapp.prod ╠═════════════════════════════════════════════ ╟─ android.intent.action.MY_PACKAGE_REPLACED 03-19 15:42:10.749 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="lsm6dsm Accelerometer Non-wakeup", vendor="STMicro", version=140554, type=1, maxRange=78.45318, resolution=0.0023928226, power=0.15, minDelay=2404} ╟─ ✅ GYROSCOPE: {Sensor name="lsm6dsm Gyroscope Non-wakeup", vendor="STMicro", version=140554, type=4, maxRange=34.90549, resolution=0.0012216945, power=0.555, minDelay=2404} ╟─ ✅ MAGNETOMETER: {Sensor name="mmc5603x Magnetometer Non-wakeup", vendor="memsic", version=10063, type=2, maxRange=3000.0044, resolution=0.0976, power=1.0, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="sns_smd Wakeup", vendor="qualcomm", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.025, minDelay=-1} ╚═════════════════════════════════════════════ 03-19 15:42:10.750 INFO [LoggerFacade$a a] ✅ Google Play Services: connected (version code:12451000) 03-19 15:42:10.761 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 03-19 15:42:10.787 INFO [BackgroundGeolocation d] 🎾 Start monitoring location-provider changes 03-19 15:42:10.795 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 03-19 15:42:10.796 DEBUG [b prune] ℹ️ PRUNE -1 days 03-19 15:42:10.811 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [] 03-19 15:42:15.489 INFO [GeofenceDAO destroyAll] ✅ 03-19 15:43:22.375 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 03-19 15:43:32.511 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════ 03-19 15:43:32.521 DEBUG [TerminateEvent ] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 03-19 15:56:28.138 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 03-19 15:56:28.374 DEBUG [BackgroundGeolocation a] 🔴 Cleared callbacks 03-19 15:56:28.382 INFO [BackgroundGeolocation$m0 run] ╔═════════════════════════════════════════════ ║ MainActivity was destroyed ╠═════════════════════════════════════════════ ╟─ stopOnTerminate: false ╟─ enabled: true 03-19 15:56:39.346 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════ 03-19 15:56:39.349 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 03-19 15:56:39.355 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.1.35 (391) ╠═════════════════════════════════════════════ ╟─ OnePlus HD1903 @ 11 (cordova) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": false, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Erlauben Sie ENGINE4 auf den Standort dieses Geräts zuzugreifen", "message": "Diese App sammelt Standortdaten, um ihre Kundenfahrten aufzeichnen und die zurückgelegte Strecke berechnen zu können, auch wenn die App geschlossen oder nicht in Gebrauch ist. Bitte erlauben Sie der App hierfür, Ihren Standort die ganze Zeit über zu verwenden.", "positiveAction": "Change to \"{backgroundPermissionOptionLabel}\"", "negativeAction": "" }, "batchSync": false, "configUrl": "", "debug": false, "deferTime": 0, "desiredAccuracy": -1, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": true, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": false, "disableStopDetection": false, "distanceFilter": 0, "elasticityMultiplier": 1, "enableHeadless": false, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": 30000, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": true, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": {}, "headlessJobService": "com.transistorsoft.cordova.bggeo.BackgroundGeolocationHeadlessTask", "heartbeatInterval": 600, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": false, "locationAuthorizationRequest": "Any", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 30000, "locationsOrderDirection": "ASC", "logLevel": 0, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": 10, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "ENGINE4", "text": "App läuft im Hintergrund und übermittelt Ihre Position", "color": "#FFFFFF", "channelName": "Geolocation", "smallIcon": "", "largeIcon": "", "priority": -1, "sticky": false, "strings": {}, "actions": [] }, "params": {}, "persist": true, "persistMode": 2, "schedule": [], "scheduleUseAlarmManager": false, "speedJumpFilter": 300, "startOnBoot": false, "stationaryRadius": 25, "stopAfterElapsedMinutes": 0, "stopOnStationary": false, "stopOnTerminate": false, "stopTimeout": 5, "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking", "url": "", "useSignificantChangesOnly": true, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 5277.46533203125, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 03-19 15:56:39.357 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="lsm6dsm Accelerometer Non-wakeup", vendor="STMicro", version=140554, type=1, maxRange=78.45318, resolution=0.0023928226, power=0.15, minDelay=2404} ╟─ ✅ GYROSCOPE: {Sensor name="lsm6dsm Gyroscope Non-wakeup", vendor="STMicro", version=140554, type=4, maxRange=34.90549, resolution=0.0012216945, power=0.555, minDelay=2404} ╟─ ✅ MAGNETOMETER: {Sensor name="mmc5603x Magnetometer Non-wakeup", vendor="memsic", version=10063, type=2, maxRange=3000.0044, resolution=0.0976, power=1.0, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="sns_smd Wakeup", vendor="qualcomm", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.025, minDelay=-1} ╚═════════════════════════════════════════════ 03-19 15:56:39.358 INFO [LoggerFacade$a a] ✅ Google Play Services: connected (version code:12451000) 03-19 15:56:39.370 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 03-19 15:56:39.375 INFO [BackgroundGeolocation d] 🎾 Start monitoring location-provider changes 03-19 15:56:39.383 DEBUG [BackgroundGeolocation isMainActivityActive] NO 03-19 15:56:39.406 DEBUG [b prune] ℹ️ PRUNE -1 days 03-19 15:56:39.410 DEBUG [BackgroundGeolocation isMainActivityActive] NO 03-19 15:56:39.428 DEBUG [BackgroundGeolocation isMainActivityActive] NO 03-19 15:56:39.440 DEBUG [BackgroundGeolocation isMainActivityActive] NO 03-19 15:56:39.447 INFO [ActivityRecognitionService b] 🎾 Start motion-activity updates 03-19 15:56:39.456 DEBUG [BackgroundGeolocation isMainActivityActive] NO 03-19 15:56:39.459 DEBUG [BackgroundGeolocation isMainActivityActive] NO 03-19 15:56:47.465 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 03-19 15:56:47.467 DEBUG [ActivityRecognitionService a] 🚘 ️DetectedActivity [type=STILL, confidence=100] 03-19 15:56:47.471 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 03-19 15:56:48.498 DEBUG [AbstractService onDestroy] 🔴 ActivityRecognitionService destroyed 03-19 16:03:06.633 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.1.35 (391) ╠═════════════════════════════════════════════ ╟─ OnePlus HD1903 @ 11 (cordova) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": false, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Erlauben Sie ENGINE4 auf den Standort dieses Geräts zuzugreifen", "message": "Diese App sammelt Standortdaten, um ihre Kundenfahrten aufzeichnen und die zurückgelegte Strecke berechnen zu können, auch wenn die App geschlossen oder nicht in Gebrauch ist. Bitte erlauben Sie der App hierfür, Ihren Standort die ganze Zeit über zu verwenden.", "positiveAction": "Change to \"{backgroundPermissionOptionLabel}\"", "negativeAction": "" }, "batchSync": false, "configUrl": "", "debug": false, "deferTime": 0, "desiredAccuracy": -1, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": true, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": false, "disableStopDetection": false, "distanceFilter": 0, "elasticityMultiplier": 1, "enableHeadless": false, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": 30000, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": true, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": {}, "headlessJobService": "com.transistorsoft.cordova.bggeo.BackgroundGeolocationHeadlessTask", "heartbeatInterval": 600, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": false, "locationAuthorizationRequest": "Any", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 30000, "locationsOrderDirection": "ASC", "logLevel": 0, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": 10, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "ENGINE4", "text": "App läuft im Hintergrund und übermittelt Ihre Position", "color": "#FFFFFF", "channelName": "Geolocation", "smallIcon": "", "largeIcon": "", "priority": -1, "sticky": false, "strings": {}, "actions": [] }, "params": {}, "persist": true, "persistMode": 2, "schedule": [], "scheduleUseAlarmManager": false, "speedJumpFilter": 300, "startOnBoot": false, "stationaryRadius": 25, "stopAfterElapsedMinutes": 0, "stopOnStationary": false, "stopOnTerminate": false, "stopTimeout": 5, "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking", "url": "", "useSignificantChangesOnly": true, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 5277.46533203125, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 03-19 16:03:06.634 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="lsm6dsm Accelerometer Non-wakeup", vendor="STMicro", version=140554, type=1, maxRange=78.45318, resolution=0.0023928226, power=0.15, minDelay=2404} ╟─ ✅ GYROSCOPE: {Sensor name="lsm6dsm Gyroscope Non-wakeup", vendor="STMicro", version=140554, type=4, maxRange=34.90549, resolution=0.0012216945, power=0.555, minDelay=2404} ╟─ ✅ MAGNETOMETER: {Sensor name="mmc5603x Magnetometer Non-wakeup", vendor="memsic", version=10063, type=2, maxRange=3000.0044, resolution=0.0976, power=1.0, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="sns_smd Wakeup", vendor="qualcomm", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.025, minDelay=-1} ╚═════════════════════════════════════════════ 03-19 16:03:06.639 INFO [BackgroundGeolocation ] ✅ Google Play Services: connected (version code:12451000) 03-19 16:03:06.659 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 03-19 16:03:06.663 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 03-19 16:03:06.666 INFO [BackgroundGeolocation d] 🎾 Start monitoring location-provider changes 03-19 16:03:06.675 DEBUG [b prune] ℹ️ PRUNE -1 days 03-19 16:03:06.700 INFO [GeofenceDAO destroyAll] ✅ 03-19 16:03:07.217 DEBUG [BackgroundGeolocation a] 🔴 Cleared callbacks 03-19 16:03:07.260 DEBUG [TSLocationManager clearLastOdometerLocation] ℹ️ Clear last odometer location 03-19 16:03:07.262 INFO [ActivityRecognitionService c] 🔴 Stop motion-activity updates 03-19 16:03:07.267 INFO [HeartbeatService c] 🔴 Stop heartbeat 03-19 16:03:07.270 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: false] 03-19 16:03:07.271 DEBUG [HttpService stopMonitoringConnectivityChanges] 🔴 Stop monitoring connectivity changes 03-19 16:03:07.277 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [] 03-19 16:03:07.277 DEBUG [TSGeofenceManager e] 🔴 Stop monitoring geofences 03-19 16:03:07.291 DEBUG [AbstractService a] ⚙️︎ finish GeofencingService [eventCount: 0, sticky: false] 03-19 16:03:07.293 DEBUG [AbstractService onDestroy] 🔴 TrackingService destroyed 03-19 16:03:07.309 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 03-19 16:03:07.312 DEBUG [AbstractService onDestroy] 🔴 GeofencingService destroyed 03-19 16:03:07.313 DEBUG [AbstractService onDestroy] 🔴 ActivityRecognitionService destroyed 03-19 16:03:07.513 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, desiredAccuracy, disableElasticity, distanceFilter, extras, fastestLocationUpdateInterval, geofenceModeHighAccuracy, headers, headlessJobService, heartbeatInterval, locationAuthorizationRequest, locationUpdateInterval, maxRecordsToPersist, notification, notification.title, notification.text, notification.color, notification.priority, notification.channelName, params, schedule, stopOnTerminate, useSignificantChangesOnly] 03-19 16:03:07.517 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [headlessJobService] 03-19 16:03:07.551 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [extras, headers, headlessJobService, params, schedule] 03-19 16:03:07.560 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, desiredAccuracy, disableElasticity, distanceFilter, fastestLocationUpdateInterval, geofenceModeHighAccuracy, headlessJobService, heartbeatInterval, locationAuthorizationRequest, locationUpdateInterval, maxRecordsToPersist, notification, notification.title, notification.text, notification.color, notification.priority, notification.channelName, stopOnTerminate, useSignificantChangesOnly] 03-19 16:03:07.594 DEBUG [c g] ℹ️ LocationAuthorization: Permission granted 03-19 16:03:07.625 INFO [ActivityRecognitionService b] 🎾 Start motion-activity updates 03-19 16:03:07.630 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 03-19 16:03:07.632 DEBUG [a c] 🎾 Start monitoring powersave changes 03-19 16:03:07.636 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 03-19 16:03:07.639 INFO [HeartbeatService b] 🎾 Start heartbeat (600s) 03-19 16:03:07.648 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 03-19 16:03:07.650 INFO [TrackingService a] 🔵 setPace: false → false 03-19 16:03:07.694 DEBUG [TSLocationManagerActivity execute] locationsettings 03-19 16:03:07.695 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 03-19 16:03:07.751 DEBUG [TSLocationManagerActivity stop] eventCount: 0 03-19 16:03:07.828 DEBUG [TSLocationManagerActivity onDestroy] 03-19 16:03:08.928 DEBUG [AbstractService a] 🎾 LocationRequestService [eventCount: 1] 03-19 16:03:08.931 INFO [LocationRequestService b] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 1 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 47,679417,9,163148 hAcc=17 et=+31d19h53m59s585ms alt=457.29998779296875 vel=0.264373 bear=1.8221381 vAcc=1 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 1157ms, time: 1647702187773 03-19 16:03:08.934 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: false 03-19 16:03:08.935 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 16.774 03-19 16:03:08.945 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 03-19 16:03:08.946 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService destroyed 03-19 16:03:08.978 DEBUG [LocationRequestService b] SingleLocationRequest 1 isFinished? true 03-19 16:03:08.978 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 03-19 16:03:08.983 INFO [ActivityRecognitionService b] 🎾 Start motion-activity updates 03-19 16:03:08.984 INFO [b persist] ✅ INSERT: e2c80563-7cd8-4d9c-9241-91684a20ef37 03-19 16:03:08.985 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 🎾 Start monitoring stationary region (radius: 150.0m 47.6794167,9.1631484 hAcc=16.774) 03-19 16:03:08.998 DEBUG [b a] ℹ️ SHRINK: 10 03-19 16:03:24.745 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 03-19 16:03:24.750 DEBUG [ActivityRecognitionService a] 🚘 ️DetectedActivity [type=ON_FOOT, confidence=97] 03-19 16:03:24.753 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 03-19 16:03:25.758 DEBUG [AbstractService onDestroy] 🔴 ActivityRecognitionService destroyed 03-19 16:03:28.251 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 03-19 16:03:28.254 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [isMoving] 03-19 16:03:28.258 INFO [HeartbeatService c] 🔴 Stop heartbeat 03-19 16:03:28.260 DEBUG [TSGeofenceManager stopMonitoringStationaryRegion] 🔴 Stop monitoring stationary region 03-19 16:03:28.262 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 03-19 16:03:28.262 INFO [TrackingService a] 🔵 setPace: false → true 03-19 16:03:28.262 INFO [ActivityRecognitionService a] ╔═════════════════════════════════════════════ ║ Motion Transition Result ╠═════════════════════════════════════════════ ╟─ 🔴 EXIT: still ╟─ 🎾 ENTER: walking ╚═════════════════════════════════════════════ 03-19 16:03:28.262 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 03-19 16:03:28.519 DEBUG [AbstractService onDestroy] 🔴 ActivityRecognitionService destroyed 03-19 16:03:29.532 DEBUG [AbstractService a] 🎾 LocationRequestService [eventCount: 1] 03-19 16:03:29.534 INFO [LocationRequestService b] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 2 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 47,679491,9,162983 hAcc=12 et=+31d19h54m21s196ms alt=457.5 vel=0.9535565 bear=266.0516 vAcc=2 sAcc=3 bAcc=75 {Bundle[EMPTY_PARCEL]}], age: 148ms, time: 1647702209166 03-19 16:03:29.536 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: true 03-19 16:03:29.536 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 14.5505 03-19 16:03:29.537 DEBUG [TSLocationManager incrementOdometer] Odometer: 5292.3755 03-19 16:03:29.544 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 03-19 16:03:29.545 INFO [TSLocationManager requestLocationUpdates] 🎾 Location-services: ON 03-19 16:03:29.546 INFO [TSLocationManager requestLocationUpdates] 🎾 Location-services: ON 03-19 16:03:29.546 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 03-19 16:03:29.550 DEBUG [LocationRequestService b] SingleLocationRequest 2 isFinished? true 03-19 16:03:29.551 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 03-19 16:03:29.552 INFO [b persist] ✅ INSERT: 412930f1-65d7-4fd6-a4f2-f1c20326cd86 03-19 16:03:29.570 DEBUG [b a] ℹ️ SHRINK: 10 03-19 16:03:29.580 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService destroyed 03-19 16:03:29.581 INFO [ActivityRecognitionService b] 🎾 Start motion-activity updates 03-19 16:03:29.583 INFO [TSLocationManager removeLocationUpdates] 🔴 Location-services: OFF 03-19 16:03:29.584 INFO [TSLocationManager requestLocationUpdates] 🎾 Location-services: ON 03-19 16:03:29.585 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 03-19 16:03:29.601 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 03-19 16:03:29.604 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 47,679491,9,162983 hAcc=12 et=+31d19h54m21s196ms alt=457.5 vel=0.9535565 bear=266.0516 vAcc=2 sAcc=3 bAcc=75 {Bundle[EMPTY_PARCEL]}], age: 218ms, time: 1647702209166 03-19 16:03:29.607 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: false] 03-19 16:03:29.611 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 03-19 16:03:29.611 DEBUG [TSLocationManager onLocationResult] ℹ️ IGNORED: same as last location 03-19 16:03:29.624 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 03-19 16:03:29.626 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 47,679491,9,162983 hAcc=12 et=+31d19h54m21s196ms alt=457.5 vel=0.9535565 bear=266.0516 vAcc=2 sAcc=3 bAcc=75 {Bundle[EMPTY_PARCEL]}], age: 241ms, time: 1647702209166 03-19 16:03:29.628 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: false] 03-19 16:03:29.628 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 03-19 16:03:29.630 DEBUG [TSLocationManager onLocationResult] ℹ️ IGNORED: same as last location 03-19 16:03:29.881 DEBUG [AbstractService onDestroy] 🔴 TrackingService destroyed 03-19 16:03:38.891 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 03-19 16:03:38.893 DEBUG [ActivityRecognitionService a] 🚘 ️DetectedActivity [type=ON_FOOT, confidence=96] 03-19 16:03:38.896 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 03-19 16:03:38.950 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 03-19 16:03:38.953 INFO [ActivityRecognitionService a] ╔═════════════════════════════════════════════ ║ Motion Transition Result ╠═════════════════════════════════════════════ ╟─ 🎾 ENTER: walking ╚═════════════════════════════════════════════ 03-19 16:03:38.953 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 03-19 16:03:39.209 DEBUG [AbstractService onDestroy] 🔴 ActivityRecognitionService destroyed 03-19 16:03:44.244 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 03-19 16:03:54.331 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════ 03-19 16:03:54.348 DEBUG [TerminateEvent ] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 03-19 16:07:29.759 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 03-19 16:07:29.761 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 47,681167,9,160673 hAcc=7 et=+31d19h58m21s506ms alt=457.0 vel=0.48 bear=203.0 vAcc=5 sAcc=2 bAcc=85 {Bundle[EMPTY_PARCEL]}], age: 66ms, time: 1647702450000 03-19 16:07:29.762 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: false] 03-19 16:07:29.766 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 03-19 16:07:29.766 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 254.56712, apparent speed: 1.0593325 03-19 16:07:29.767 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 12.327 03-19 16:07:29.771 DEBUG [TSLocationManager incrementOdometer] Odometer: 5546.9424 03-19 16:07:29.784 INFO [b persist] ✅ INSERT: 91862b7e-af6a-4e05-ae99-8ae06d3f7309 03-19 16:07:29.802 DEBUG [b a] ℹ️ SHRINK: 10 03-19 16:07:30.015 DEBUG [AbstractService onDestroy] 🔴 TrackingService destroyed 03-19 16:07:43.364 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 03-19 16:07:53.473 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════ 03-19 16:07:53.481 DEBUG [TerminateEvent ] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 03-19 16:11:53.829 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 03-19 16:11:53.831 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 47,679440,9,163086 hAcc=16 et=+31d20h2m41s837ms alt=457.1999816894531 vAcc=4 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 3805ms, time: 1647702710025 03-19 16:11:53.831 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: false] 03-19 16:11:53.832 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 03-19 16:11:53.832 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 263.95547, apparent speed: 1.0139265 03-19 16:11:53.833 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 14.5505 03-19 16:11:53.834 DEBUG [TSLocationManager incrementOdometer] Odometer: 5810.898 03-19 16:11:53.842 INFO [b persist] ✅ INSERT: a4a07d8d-dbad-4bb7-94c3-8915c13f9c2e 03-19 16:11:53.850 DEBUG [b a] ℹ️ SHRINK: 10 03-19 16:11:54.091 DEBUG [AbstractService onDestroy] 🔴 TrackingService destroyed 03-19 16:12:12.801 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 03-19 16:12:22.857 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════ 03-19 16:12:22.867 DEBUG [TerminateEvent ] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 03-19 16:13:24.418 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 03-19 16:13:34.516 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════ 03-19 16:13:34.524 DEBUG [TerminateEvent ] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 03-19 16:13:59.568 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 03-19 16:14:04.446 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 03-19 16:15:48.623 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 03-19 16:15:48.627 INFO [ActivityRecognitionService a] ╔═════════════════════════════════════════════ ║ Motion Transition Result ╠═════════════════════════════════════════════ ╟─ 🔴 EXIT: walking ╟─ 🎾 ENTER: still ╚═════════════════════════════════════════════ 03-19 16:15:48.628 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 03-19 16:15:48.642 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 03-19 16:15:48.642 DEBUG [TrackingService a] 🔵 Stop-timeout elapsed! 03-19 16:15:48.644 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [isMoving] 03-19 16:15:48.647 INFO [TSLocationManager removeLocationUpdates] 🔴 Location-services: OFF 03-19 16:15:48.649 INFO [HeartbeatService b] 🎾 Start heartbeat (600s) 03-19 16:15:48.653 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 03-19 16:15:48.653 INFO [TrackingService a] 🔵 setPace: true → false 03-19 16:15:48.654 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: false] 03-19 16:15:48.880 DEBUG [AbstractService onDestroy] 🔴 ActivityRecognitionService destroyed 03-19 16:15:48.906 DEBUG [AbstractService onDestroy] 🔴 TrackingService destroyed 03-19 16:15:49.903 DEBUG [AbstractService a] 🎾 LocationRequestService [eventCount: 1] 03-19 16:15:49.905 INFO [LocationRequestService b] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 3 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 47,679186,9,162965 hAcc=16 et=+31d20h6m39s859ms alt=466.6000061035156 vel=0.0 bear=90.0 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 1857ms, time: 1647702948047 03-19 16:15:49.906 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: false 03-19 16:15:49.907 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 16.774 03-19 16:15:49.907 DEBUG [TSLocationManager incrementOdometer] Odometer: 5840.575 03-19 16:15:49.915 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 03-19 16:15:49.915 DEBUG [LocationRequestService b] SingleLocationRequest 3 isFinished? true 03-19 16:15:49.917 INFO [b persist] ✅ INSERT: 98baaf00-c583-400e-af0c-3e8a0fcdd0a8 03-19 16:15:49.921 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 03-19 16:15:49.938 DEBUG [b a] ℹ️ SHRINK: 10 03-19 16:15:49.955 INFO [ActivityRecognitionService b] 🎾 Start motion-activity updates 03-19 16:15:49.956 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 🎾 Start monitoring stationary region (radius: 150.0m 47.6791856,9.1629654 hAcc=16.335) 03-19 16:15:50.167 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService destroyed 03-19 16:15:57.318 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 03-19 16:15:57.320 DEBUG [ActivityRecognitionService a] 🚘 ️DetectedActivity [type=TILTING, confidence=100] 03-19 16:15:57.324 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 03-19 16:15:57.366 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 03-19 16:15:57.368 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 03-19 16:15:57.368 INFO [ActivityRecognitionService a] ╔═════════════════════════════════════════════ ║ Motion Transition Result ╠═════════════════════════════════════════════ ╟─ 🎾 ENTER: still ╚═════════════════════════════════════════════ 03-19 16:15:57.623 DEBUG [AbstractService onDestroy] 🔴 ActivityRecognitionService destroyed 03-19 16:16:20.346 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 03-19 16:16:30.524 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════ 03-19 16:16:30.533 DEBUG [TerminateEvent ] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 03-19 16:25:21.421 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 03-19 16:25:31.567 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════ 03-19 16:25:31.578 DEBUG [TerminateEvent ] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 03-19 16:25:57.221 DEBUG [AbstractService a] 🎾 HeartbeatService [eventCount: 1] 03-19 16:25:57.222 DEBUG [HeartbeatService$a run] ❤️ 03-19 16:25:57.246 DEBUG [AbstractService a] ⚙️︎ finish HeartbeatService [eventCount: 0, sticky: false] 03-19 16:25:57.308 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 03-19 16:25:57.527 DEBUG [AbstractService onDestroy] 🔴 HeartbeatService destroyed 03-19 16:25:58.098 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 03-19 16:26:01.097 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 03-19 16:26:02.623 DEBUG [AbstractService a] 🎾 LocationRequestService [eventCount: 1] 03-19 16:26:02.624 INFO [LocationRequestService b] ╔═════════════════════════════════════════════ ║ getCurrentPosition LocationResult: 4 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 47,679175,9,162966 hAcc=17 et=+31d20h6m45s690ms alt=466.3999938964844 vel=0.16732392 bear=176.75063 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 608746ms, time: 1647702953878 03-19 16:26:02.625 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 16.629 03-19 16:26:02.628 DEBUG [LocationRequestService b] SingleLocationRequest 4 isFinished? false 03-19 16:26:02.629 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 03-19 16:26:04.417 DEBUG [AbstractService a] 🎾 LocationRequestService [eventCount: 1] 03-19 16:26:04.421 INFO [LocationRequestService a] ℹ️ Location availability: false 03-19 16:26:04.421 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 03-19 16:26:07.635 DEBUG [AbstractService a] 🎾 LocationRequestService [eventCount: 1] 03-19 16:26:07.638 INFO [LocationRequestService a] ℹ️ Location availability: true 03-19 16:26:07.639 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 03-19 16:26:07.661 DEBUG [AbstractService a] 🎾 LocationRequestService [eventCount: 1] 03-19 16:26:07.664 INFO [LocationRequestService b] ╔═════════════════════════════════════════════ ║ getCurrentPosition LocationResult: 4 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 47,679178,9,162972 hAcc=15 et=+31d20h16m49s47ms alt=466.6000061035156 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 10428ms, time: 1647703557235 03-19 16:26:07.665 INFO [TSLocationManager onSingleLocationResult] ⚠️ (location-age: 10429 ms) 03-19 16:26:07.665 DEBUG [LocationRequestService b] SingleLocationRequest 4 isFinished? false 03-19 16:26:07.666 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 03-19 16:26:12.321 WARN [SingleLocationRequest finish] ⚠️ timeout: 4 03-19 16:26:12.323 INFO [SingleLocationRequest finish] 🔵 Found previous sample 03-19 16:26:12.326 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired current position 03-19 16:26:12.327 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 16.484 03-19 16:26:12.341 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 03-19 16:26:12.356 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService destroyed 03-19 16:26:31.412 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 03-19 16:26:56.093 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.1.35 (391) ╠═════════════════════════════════════════════ ╟─ OnePlus HD1903 @ 11 (cordova) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": false, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Erlauben Sie ENGINE4 auf den Standort dieses Geräts zuzugreifen", "message": "Diese App sammelt Standortdaten, um ihre Kundenfahrten aufzeichnen und die zurückgelegte Strecke berechnen zu können, auch wenn die App geschlossen oder nicht in Gebrauch ist. Bitte erlauben Sie der App hierfür, Ihren Standort die ganze Zeit über zu verwenden.", "positiveAction": "Change to \"{backgroundPermissionOptionLabel}\"", "negativeAction": "" }, "batchSync": false, "configUrl": "", "debug": false, "deferTime": 0, "desiredAccuracy": -1, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": true, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": false, "disableStopDetection": false, "distanceFilter": 100, "elasticityMultiplier": 1, "enableHeadless": false, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": 30000, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": true, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": {}, "headlessJobService": "com.transistorsoft.cordova.bggeo.BackgroundGeolocationHeadlessTask", "heartbeatInterval": 600, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": false, "locationAuthorizationRequest": "Any", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 30000, "locationsOrderDirection": "ASC", "logLevel": 0, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": 10, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "ENGINE4", "text": "App läuft im Hintergrund und übermittelt Ihre Position", "color": "#FFFFFF", "channelName": "Geolocation", "smallIcon": "", "largeIcon": "", "priority": -1, "sticky": false, "strings": {}, "actions": [] }, "params": {}, "persist": true, "persistMode": 2, "schedule": [], "scheduleUseAlarmManager": false, "speedJumpFilter": 300, "startOnBoot": false, "stationaryRadius": 25, "stopAfterElapsedMinutes": 0, "stopOnStationary": false, "stopOnTerminate": false, "stopTimeout": 5, "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking", "url": "", "useSignificantChangesOnly": true, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 5840.5751953125, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 03-19 16:26:56.094 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="lsm6dsm Accelerometer Non-wakeup", vendor="STMicro", version=140554, type=1, maxRange=78.45318, resolution=0.0023928226, power=0.15, minDelay=2404} ╟─ ✅ GYROSCOPE: {Sensor name="lsm6dsm Gyroscope Non-wakeup", vendor="STMicro", version=140554, type=4, maxRange=34.90549, resolution=0.0012216945, power=0.555, minDelay=2404} ╟─ ✅ MAGNETOMETER: {Sensor name="mmc5603x Magnetometer Non-wakeup", vendor="memsic", version=10063, type=2, maxRange=3000.0044, resolution=0.0976, power=1.0, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="sns_smd Wakeup", vendor="qualcomm", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.025, minDelay=-1} ╚═════════════════════════════════════════════ 03-19 16:26:56.095 INFO [LoggerFacade$a a] ✅ Google Play Services: connected (version code:12451000) 03-19 16:26:56.095 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ BootReceiver: com.mobilefunction.mfapp.prod ╠═════════════════════════════════════════════ ╟─ android.intent.action.MY_PACKAGE_REPLACED 03-19 16:26:56.096 DEBUG [LoggerFacade$a a] ℹ️ Load last odometer location: Location[TSLocationManager 47,679186,9,162965 hAcc=16 t=?!? et=?!? vAcc=??? sAcc=??? bAcc=??? {Bundle[{odometer=5840.575}]}] 03-19 16:26:56.100 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 03-19 16:26:56.110 INFO [BackgroundGeolocation d] 🎾 Start monitoring location-provider changes 03-19 16:26:56.110 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 03-19 16:26:56.140 DEBUG [b prune] ℹ️ PRUNE -1 days 03-19 16:26:56.148 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [] 03-19 16:26:58.187 INFO [GeofenceDAO destroyAll] ✅ 03-19 16:26:58.823 DEBUG [BackgroundGeolocation a] 🔴 Cleared callbacks 03-19 16:26:59.956 DEBUG [TSLocationManager clearLastOdometerLocation] ℹ️ Clear last odometer location 03-19 16:26:59.957 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [] 03-19 16:26:59.957 DEBUG [TSGeofenceManager e] 🔴 Stop monitoring geofences 03-19 16:26:59.959 INFO [ActivityRecognitionService c] 🔴 Stop motion-activity updates 03-19 16:26:59.963 INFO [HeartbeatService c] 🔴 Stop heartbeat 03-19 16:26:59.965 DEBUG [HttpService stopMonitoringConnectivityChanges] 🔴 Stop monitoring connectivity changes 03-19 16:26:59.970 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: false] 03-19 16:26:59.992 DEBUG [AbstractService a] ⚙️︎ finish GeofencingService [eventCount: 0, sticky: false] 03-19 16:26:59.999 DEBUG [AbstractService onDestroy] 🔴 TrackingService destroyed 03-19 16:27:00.001 DEBUG [AbstractService onDestroy] 🔴 GeofencingService destroyed 03-19 16:27:00.009 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 03-19 16:27:00.012 DEBUG [AbstractService onDestroy] 🔴 ActivityRecognitionService destroyed 03-19 16:27:00.030 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, desiredAccuracy, disableElasticity, distanceFilter, extras, fastestLocationUpdateInterval, geofenceModeHighAccuracy, headers, headlessJobService, heartbeatInterval, locationAuthorizationRequest, locationUpdateInterval, maxRecordsToPersist, notification, notification.title, notification.text, notification.color, notification.priority, notification.channelName, params, schedule, stopOnTerminate, useSignificantChangesOnly] 03-19 16:27:00.033 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [headlessJobService] 03-19 16:27:00.044 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [extras, headers, headlessJobService, params, schedule] 03-19 16:27:00.049 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, desiredAccuracy, disableElasticity, distanceFilter, fastestLocationUpdateInterval, geofenceModeHighAccuracy, headlessJobService, heartbeatInterval, locationAuthorizationRequest, locationUpdateInterval, maxRecordsToPersist, notification, notification.title, notification.text, notification.color, notification.priority, notification.channelName, stopOnTerminate, useSignificantChangesOnly] 03-19 16:27:00.063 DEBUG [c g] ℹ️ LocationAuthorization: Permission granted 03-19 16:27:00.085 INFO [ActivityRecognitionService b] 🎾 Start motion-activity updates 03-19 16:27:00.090 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 03-19 16:27:00.094 DEBUG [a c] 🎾 Start monitoring powersave changes 03-19 16:27:00.100 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 03-19 16:27:00.121 INFO [HeartbeatService b] 🎾 Start heartbeat (600s) 03-19 16:27:00.124 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 03-19 16:27:00.125 INFO [TrackingService a] 🔵 setPace: false → false 03-19 16:27:00.174 DEBUG [TSLocationManagerActivity execute] locationsettings 03-19 16:27:00.178 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 03-19 16:27:00.234 DEBUG [TSLocationManagerActivity stop] eventCount: 0 03-19 16:27:00.314 DEBUG [TSLocationManagerActivity onDestroy] 03-19 16:27:02.522 DEBUG [AbstractService a] 🎾 LocationRequestService [eventCount: 1] 03-19 16:27:02.525 INFO [LocationRequestService b] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 1 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 47,679164,9,162966 hAcc=20 et=+31d20h17m52s146ms alt=466.3999938964844 vAcc=2 sAcc=??? bAcc=??? {Bundle[EMPTY_PARCEL]}], age: 2190ms, time: 1647703620334 03-19 16:27:02.527 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: false 03-19 16:27:02.527 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 20.0 03-19 16:27:02.533 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 03-19 16:27:02.538 DEBUG [LocationRequestService b] SingleLocationRequest 1 isFinished? true 03-19 16:27:02.539 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 03-19 16:27:02.545 INFO [b persist] ✅ INSERT: 6c57c676-7db7-41b6-82cf-356914809713 03-19 16:27:02.550 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService destroyed 03-19 16:27:02.557 INFO [ActivityRecognitionService b] 🎾 Start motion-activity updates 03-19 16:27:02.558 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 🎾 Start monitoring stationary region (radius: 150.0m 47.6791635,9.1629663 hAcc=20.0) 03-19 16:27:02.566 DEBUG [b a] ℹ️ SHRINK: 10 03-19 16:27:18.787 INFO [GeofenceDAO destroyAll] ✅ 03-19 16:27:18.791 DEBUG [TSGeofenceManager$f run] ╔═════════════════════════════════════════════ ║ TSGeofenceManager monitoring 0/0 ╠═════════════════════════════════════════════ ╚═════════════════════════════════════════════ 03-19 16:27:19.104 DEBUG [BackgroundGeolocation a] 🔴 Cleared callbacks ```

Result: Unfortunately, the position was not captured approximately every 30 seconds but on average every 4 minutes. So this approach does not help us.

What else can we do?

christocracy commented 2 years ago

Decrease distanceFilter as desired.

robingenz commented 2 years ago

As I mentioned earlier, we want to track the position every 30 seconds, regardless of the speed and distance traveled. The reason for this is that our customers are moving both on foot and in vehicles and we do not need more than 2 positions per minute. So the distanceFilter is not a solution for us! We need to use locationUpdateInterval. Unfortunately locationUpdateInterval does not work as described. This is from my point of view with the information I currently have, a bug in this plugin. We sold this feature to our customers when we purchased your plugin. So, we are relying on locationUpdateInterval.

Please let us know if you need more information.

christocracy commented 2 years ago

It’s not even possible to do time-based updates on iOS. There is only distanceFilter for iOS.

distance-based tracking is more battery-efficient.

robingenz commented 2 years ago

It’s not even possible to do time-based updates on iOS. There is only distanceFilter for iOS.

I know that. I'm only interested in Android right now.

distance-based tracking is more battery-efficient.

This is not a problem for us, as our customers' devices are regularly recharged in the vehicles.

I understand your points and appreciate your tips.

However, this does not change the fact that locationUpdateInterval does not work as described.

christocracy commented 2 years ago

Why are you using the Cordova version with Capacitor?

robingenz commented 2 years ago

We implemented this plugin when there was no Capacitor version yet, so we have always used the Cordova version. At that time, this plugin also explicitly promoted Capacitor Support.

robingenz commented 2 years ago

What is the status of this issues? Can we expect a fix? Do you need more information from us? Can we assist you in any way?

christocracy commented 2 years ago

Using your Config provided to the original issue, I've pasted it into my demo app.

Running on my Pixel 3a @ Android 12, after calling .changePace(true), I receive a location about every 30s.

03-23 11:19:30.709  7373  7373 D TSLocationManager: [c.t.l.service.TrackingService b]
03-23 11:19:30.709  7373  7373 D TSLocationManager: ╔═════════════════════════════════════════════
03-23 11:19:30.709  7373  7373 D TSLocationManager: ║ TrackingService: LocationResult
03-23 11:19:30.709  7373  7373 D TSLocationManager: ╠═════════════════════════════════════════════
03-23 11:19:30.709  7373  7373 D TSLocationManager: ╟─ 📍  Location[fused 45.518929,-73.600623 hAcc=13.901 et=+12m22s697ms alt=47.0 vAcc=1.1913038 {Bundle[EMPTY_PARCEL]}], age: 1158ms, time: 1648048769549
.
.
.
03-23 11:20:21.908  7373  7373 D TSLocationManager: [c.t.l.service.TrackingService b]
03-23 11:20:21.908  7373  7373 D TSLocationManager: ╔═════════════════════════════════════════════
03-23 11:20:21.908  7373  7373 D TSLocationManager: ║ TrackingService: LocationResult
03-23 11:20:21.908  7373  7373 D TSLocationManager: ╠═════════════════════════════════════════════
03-23 11:20:21.908  7373  7373 D TSLocationManager: ╟─ 📍  Location[fused 45.518912,-73.600627 hAcc=14.664 et=+13m13s947ms alt=47.0 vAcc=1.2042937 {Bundle[EMPTY_PARCEL]}], age: 1109ms, time: 1648048820799
.
.
.
03-23 11:21:19.879  7373  7373 D TSLocationManager: [c.t.l.service.TrackingService b]
03-23 11:21:19.879  7373  7373 D TSLocationManager: ╔═════════════════════════════════════════════
03-23 11:21:19.879  7373  7373 D TSLocationManager: ║ TrackingService: LocationResult
03-23 11:21:19.879  7373  7373 D TSLocationManager: ╠═════════════════════════════════════════════
03-23 11:21:19.879  7373  7373 D TSLocationManager: ╟─ 📍  Location[fused 45.518921,-73.600625 hAcc=20.1 et=+14m12s194ms alt=47.0 vAcc=1.2636294 {Bundle[EMPTY_PARCEL]}], age: 832ms, time: 1648048879046
.
.
.
03-23 11:21:49.968  7373  7373 D TSLocationManager: [c.t.l.service.TrackingService b]
03-23 11:21:49.968  7373  7373 D TSLocationManager: ╔═════════════════════════════════════════════
03-23 11:21:49.968  7373  7373 D TSLocationManager: ║ TrackingService: LocationResult
03-23 11:21:49.968  7373  7373 D TSLocationManager: ╠═════════════════════════════════════════════
03-23 11:21:49.968  7373  7373 D TSLocationManager: ╟─ 📍  Location[fused 45.518929,-73.600619 hAcc=14.393 et=+14m41s938ms alt=47.0 vAcc=1.2443205 {Bundle[EMPTY_PARCEL]}], age: 1176ms, time: 1648048908789
.
.
.
03-23 11:22:18.746  7373  7373 D TSLocationManager: [c.t.l.service.TrackingService b]
03-23 11:22:18.746  7373  7373 D TSLocationManager: ╔═════════════════════════════════════════════
03-23 11:22:18.746  7373  7373 D TSLocationManager: ║ TrackingService: LocationResult
03-23 11:22:18.746  7373  7373 D TSLocationManager: ╠═════════════════════════════════════════════
03-23 11:22:18.746  7373  7373 D TSLocationManager: ╟─ 📍  Location[fused 45.518916,-73.600626 hAcc=16.336 et=+15m11s847ms alt=47.0 vAcc=1.259868 vel=0.0018325069 bear=35.01792 {Bundle[EMPTY_PARCEL]}], age: 45ms, time: 1648048938000
.
.
.
03-23 11:22:49.734  7373  7373 D TSLocationManager: [c.t.l.service.TrackingService b]
03-23 11:22:49.734  7373  7373 D TSLocationManager: ╔═════════════════════════════════════════════
03-23 11:22:49.734  7373  7373 D TSLocationManager: ║ TrackingService: LocationResult
03-23 11:22:49.734  7373  7373 D TSLocationManager: ╠═════════════════════════════════════════════
03-23 11:22:49.734  7373  7373 D TSLocationManager: ╟─ 📍  Location[fused 45.518926,-73.600616 hAcc=15.409 et=+15m42s846ms alt=47.0 vAcc=1.4918085 vel=0.0019845902 bear=215.01791 {Bundle[EMPTY_PARCEL]}], age: 33ms, time: 1648048969000
robingenz commented 2 years ago

I have created a minimal, reproducible example with the Capacitor plugin: https://github.com/robingenz/transistorsoft-cordova-background-geolocation-lt-issue-1339

I have tested this app on the following devices:

On both devices I had the problem described above.

Maybe this will help you.

robingenz commented 2 years ago

Is there anything I can do to help? Do you need any more info?

robingenz commented 2 years ago

Do you have any news?

christocracy commented 2 years ago

No. Create for me a simple Hello world app that reproduces the issue. Share that with me in a public GitHub repo.

robingenz commented 2 years ago

I have created a minimal, reproducible example with the Capacitor plugin: robingenz/transistorsoft-cordova-background-geolocation-lt-issue-1339

That is exactly what I have done here - a minimal, reproducible example.

https://github.com/robingenz/transistorsoft-cordova-background-geolocation-lt-issue-1339 (see https://github.com/robingenz/transistorsoft-cordova-background-geolocation-lt-issue-1339/blob/main/src/app/home/home.page.ts)

robingenz commented 2 years ago

Did it work for you?

robingenz commented 2 years ago

Is there something wrong with my reproducible example?

christocracy commented 2 years ago

I cannot reproduce this with your example app above.

04-29 13:05:43.625 31617 31741 I TSLocationManager: ╔═════════════════════════════════════════════
04-29 13:05:43.625 31617 31741 I TSLocationManager: ║ Motion Transition Result
04-29 13:05:43.625 31617 31741 I TSLocationManager: ╠═════════════════════════════════════════════
04-29 13:05:43.625 31617 31741 I TSLocationManager: ╟─ 🔴  EXIT: still
04-29 13:05:43.625 31617 31741 I TSLocationManager: ╟─ 🎾  ENTER: walking
04-29 13:05:43.625 31617 31741 I TSLocationManager: ╚═════════════════════════════════════════════
04-29 13:05:43.993 31617 31741 I TSLocationManager: [c.t.l.s.LocationRequestService b]

04-29 13:05:43.993 31617 31741 I TSLocationManager: ╔═════════════════════════════════════════════
04-29 13:05:43.993 31617 31741 I TSLocationManager: ║ motionchange LocationResult: 4
04-29 13:05:43.993 31617 31741 I TSLocationManager: ╠═════════════════════════════════════════════
04-29 13:05:43.993 31617 31741 I TSLocationManager: ╟─ 📍  Location[fused 45.518829,-73.600619 hAcc=16 et=+8d2h39m15s126ms alt=45.10000228881836 vAcc=1 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=576]}], age: 1126ms, time: 1651251942865
.
.
.
04-29 13:05:44.096 31617 31617 D TSLocationManager: [c.t.l.service.TrackingService b]
04-29 13:05:44.096 31617 31617 D TSLocationManager: ╔═════════════════════════════════════════════
04-29 13:05:44.096 31617 31617 D TSLocationManager: ║ TrackingService: LocationResult
04-29 13:05:44.096 31617 31617 D TSLocationManager: ╠═════════════════════════════════════════════
04-29 13:05:44.096 31617 31617 D TSLocationManager: ╟─ 📍  Location[fused 45.518829,-73.600619 hAcc=16 et=+8d2h39m16s265ms alt=45.10000228881836 vAcc=1 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=576]}], age: 91ms, time: 1651251944004
04-29 13:05:44.096 31617 31617 D TSLocationManager: [c.t.l.service.AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
.
.
.
04-29 13:05:44.115 31617 31617 D TSLocationManager: [c.t.l.service.TrackingService b]
04-29 13:05:44.115 31617 31617 D TSLocationManager: ╔═════════════════════════════════════════════
04-29 13:05:44.115 31617 31617 D TSLocationManager: ║ TrackingService: LocationResult
04-29 13:05:44.115 31617 31617 D TSLocationManager: ╠═════════════════════════════════════════════
04-29 13:05:44.115 31617 31617 D TSLocationManager: ╟─ 📍  Location[fused 45.518829,-73.600619 hAcc=16 et=+8d2h39m16s265ms alt=45.10000228881836 vAcc=1 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=576]}], age: 109ms, time: 1651251944004
.
.
.
04-29 13:06:25.372 31617 31617 D TSLocationManager: [c.t.l.service.TrackingService b]
04-29 13:06:25.372 31617 31617 D TSLocationManager: ╔═════════════════════════════════════════════
04-29 13:06:25.372 31617 31617 D TSLocationManager: ║ TrackingService: LocationResult
04-29 13:06:25.372 31617 31617 D TSLocationManager: ╠═════════════════════════════════════════════
04-29 13:06:25.372 31617 31617 D TSLocationManager: ╟─ 📍  Location[fused 45.518825,-73.600624 hAcc=14 et=+8d2h39m56s502ms alt=45.0 vAcc=1 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=576]}], age: 1128ms, time: 1651251984241
04-29 13:06:25.373 31617 31617 D TSLocationManager: [c.t.l.service.AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
.
.
.
04-29 13:07:05.420 31617 31617 D TSLocationManager: [c.t.l.service.TrackingService b]
04-29 13:07:05.420 31617 31617 D TSLocationManager: ╔═════════════════════════════════════════════
04-29 13:07:05.420 31617 31617 D TSLocationManager: ║ TrackingService: LocationResult
04-29 13:07:05.420 31617 31617 D TSLocationManager: ╠═════════════════════════════════════════════
04-29 13:07:05.420 31617 31617 D TSLocationManager: ╟─ 📍  Location[fused 45.518826,-73.600621 hAcc=12 et=+8d2h40m36s535ms alt=45.0 vAcc=1 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=576]}], age: 1143ms, time: 1651252024274
04-29 13:07:05.421 31617 31617 D TSLocationManager: [c.t.l.service.AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
.
.
.
04-29 13:07:45.898 31617 31617 D TSLocationManager: [c.t.l.service.TrackingService b]
04-29 13:07:45.898 31617 31617 D TSLocationManager: ╔═════════════════════════════════════════════
04-29 13:07:45.898 31617 31617 D TSLocationManager: ║ TrackingService: LocationResult
04-29 13:07:45.898 31617 31617 D TSLocationManager: ╠═════════════════════════════════════════════
04-29 13:07:45.898 31617 31617 D TSLocationManager: ╟─ 📍  Location[fused 45.518823,-73.600622 hAcc=14 et=+8d2h41m17s298ms alt=45.0 vAcc=1 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=576]}], age: 858ms, time: 1651252065037
04-29 13:07:45.899 31617 31617 D TSLocationManager: [c.t.l.service.AbstractService a] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
robingenz commented 2 years ago

I tested it again and unfortunately I can still reproduce it. However, I noticed the following:

So please make sure to have the app in the background when testing. The flickering of the notification does not start immediately, only after I am on the move for a few minutes. However, it does not stop after that.

robingenz commented 2 years ago

Did it help?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

robingenz commented 1 year ago

Any updates @christocracy?

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been inactive for 14 days since being marked as stale.