transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.63k stars 425 forks source link

"When in use" on iOS stops tracking [edited] #1441

Closed ironmanromeo closed 2 years ago

ironmanromeo commented 2 years ago

Your Environment

Expected Behavior

It should track in the background with "When in use" privacy

Actual Behavior

After a certain period of time the application stops tracking

Steps to Reproduce

  1. Start the service with BackgroundGeolocation.start();
  2. Turn off the phone screen (leaving the application open in the background)
  3. Walking, running, cycling ...
  4. Turn the screen back on and end the service if you have lost track

Context

Being able to create an iOS and Android application that tracks the activity of a person who walks, runs or rides a bicycle both on the road and on dirt roads.

In log file we found that activity tracking stops here: 02-02 14:41:42.583 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true]

Here I resumed the app: 02-02 14:47:34.370 INFO [LoggerFacade$a a]

we lost tracking from 14:41 to 14:47.

Debug logs

Logs ``` ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.1.35 (391) ╠═════════════════════════════════════════════ ╟─ HUAWEI JSN-L21 @ 9 (react-native) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": false, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Allow {applicationName} to access this device's location even when closed or not in use?", "message": "[CHANGEME] This app collects location data for FEATURE X and FEATURE Y.", "positiveAction": "Change to \"{backgroundPermissionOptionLabel}\"", "negativeAction": "" }, "batchSync": false, "configUrl": "", "debug": false, "deferTime": 0, "desiredAccuracy": -2, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": false, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": false, "disableStopDetection": false, "distanceFilter": 10, "elasticityMultiplier": 1, "enableHeadless": true, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": -1, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": false, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": {}, "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask", "heartbeatInterval": -1, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": false, "locationAuthorizationRequest": "WhenInUse", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 1000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "", "text": "Location Service activated", "color": "", "channelName": "TSLocationManager", "smallIcon": "", "largeIcon": "", "priority": 0, "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": false, "enabled": false, "schedulerEnabled": false, "trackingMode": 1, "odometer": 11808.599609375, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="accelerometer-bmi160", vendor="BOSCH", version=1, type=1, maxRange=78.4532, resolution=9.576806E-6, power=0.23, minDelay=4000} ╟─ ✅ GYROSCOPE: {Sensor name="bosch-bmi160", vendor="BOSCH", version=1, type=4, maxRange=34.906586, resolution=1.7453292E-5, power=6.1, minDelay=4000} ╟─ ✅ MAGNETOMETER: {Sensor name="mag-akm09918", vendor="akm", version=1001, type=2, maxRange=2000.0, resolution=0.0625, power=6.8, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="significant Motion", vendor="huawei", version=1, type=17, maxRange=2.14748365E9, resolution=1.0, power=0.23, minDelay=-1} ╚═════════════════════════════════════════════ ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=26 et=+3d1h28m29s452ms alt=261.0 vel=0.60704195 bear=312.5772 vAcc=1 sAcc=??? bAcc=???], age: 108ms, time: 1643809295463 02-02 14:41:35.580 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:41:35.582 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 8.946 02-02 14:41:35.584 DEBUG [TSLocationManager incrementOdometer] Odometer: 11340.667 02-02 14:41:35.586 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:41:35.609 INFO [b persist] ✅ INSERT: 22397d68-6df4-437d-9cad-dcb52aa3f427 02-02 14:41:37.582 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:41:37.585 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=30 et=+3d1h28m31s490ms alt=261.0 vel=0.85510886 bear=317.46118 vAcc=1 sAcc=??? bAcc=???], age: 81ms, time: 1643809298000 02-02 14:41:37.587 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:41:37.588 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 9.159 02-02 14:41:37.591 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:41:37.597 INFO [b persist] ✅ INSERT: 24fbbe45-5946-42d5-8ddb-b7d8570cc698 02-02 14:41:38.848 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:41:38.852 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=23 et=+3d1h28m32s766ms alt=261.0 vel=0.94061583 bear=328.5504 vAcc=1 sAcc=??? bAcc=???], age: 73ms, time: 1643809298777 02-02 14:41:38.857 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:41:38.857 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:41:38.858 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 9.319 02-02 14:41:38.859 DEBUG [TSLocationManager incrementOdometer] Odometer: 11374.249 02-02 14:41:38.900 INFO [b persist] ✅ INSERT: 258158e7-aa0a-45c7-97b8-12ba94fd6021 02-02 14:41:39.997 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:41:40.003 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=18 et=+3d1h28m33s908ms alt=261.0 vel=1.0325823 bear=337.04288 vAcc=1 sAcc=??? bAcc=???], age: 82ms, time: 1643809299920 02-02 14:41:40.007 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:41:40.008 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 9.062 02-02 14:41:40.015 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:41:40.023 INFO [b persist] ✅ INSERT: 8a1604c0-b988-48d1-86cf-ef9436fca905 02-02 14:41:42.570 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:41:42.578 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=14 et=+3d1h28m36s477ms alt=261.0 vel=1.1349927 bear=343.4294 vAcc=1 sAcc=??? bAcc=???], age: 83ms, time: 1643809303000 02-02 14:41:42.583 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:41:42.583 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:41:42.589 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 9.749 02-02 14:41:42.593 DEBUG [TSLocationManager incrementOdometer] Odometer: 11400.761 02-02 14:41:42.625 INFO [b persist] ✅ INSERT: e9772b4f-bdc9-49bb-9ba0-e72bb8e623c4 02-02 14:47:34.370 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.1.35 (391) ╠═════════════════════════════════════════════ ╟─ HUAWEI JSN-L21 @ 9 (react-native) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": false, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Allow {applicationName} to access this device's location even when closed or not in use?", "message": "[CHANGEME] This app collects location data for FEATURE X and FEATURE Y.", "positiveAction": "Change to \"{backgroundPermissionOptionLabel}\"", "negativeAction": "" }, "batchSync": false, "configUrl": "", "debug": false, "deferTime": 0, "desiredAccuracy": -2, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": false, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": false, "disableStopDetection": false, "distanceFilter": 10, "elasticityMultiplier": 1, "enableHeadless": true, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": -1, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": false, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": {}, "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask", "heartbeatInterval": -1, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": true, "locationAuthorizationRequest": "WhenInUse", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 1000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "", "text": "Location Service activated", "color": "", "channelName": "TSLocationManager", "smallIcon": "", "largeIcon": "", "priority": 0, "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": false, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 11400.7607421875, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 02-02 14:47:34.374 INFO [TSConfig print] ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="accelerometer-bmi160", vendor="BOSCH", version=1, type=1, maxRange=78.4532, resolution=9.576806E-6, power=0.23, minDelay=4000} ╟─ ✅ GYROSCOPE: {Sensor name="bosch-bmi160", vendor="BOSCH", version=1, type=4, maxRange=34.906586, resolution=1.7453292E-5, power=6.1, minDelay=4000} ╟─ ✅ MAGNETOMETER: {Sensor name="mag-akm09918", vendor="akm", version=1001, type=2, maxRange=2000.0, resolution=0.0625, power=6.8, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="significant Motion", vendor="huawei", version=1, type=17, maxRange=2.14748365E9, resolution=1.0, power=0.23, minDelay=-1} ╚═════════════════════════════════════════════ 02-02 14:47:34.382 INFO [BackgroundGeolocation ] ✅ Google Play Services: connected (version code:12451000) 02-02 14:47:34.391 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 02-02 14:47:34.398 DEBUG [TSLocationManager$d run] ℹ️ Load last odometer location: Location[TSLocationManager 46******,9****** hAcc=14 t=?!? et=?!? vAcc=??? sAcc=??? bAcc=???] 02-02 14:47:34.399 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:47:34.409 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════ 02-02 14:47:34.410 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=19 et=+3d1h34m27s931ms alt=263.6999816894531 vAcc=1 sAcc=??? bAcc=???], age: 467ms, time: 1643809653942 02-02 14:47:34.411 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:47:34.412 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 19.369 02-02 14:47:34.412 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:47:34.413 INFO [BackgroundGeolocation d] 🎾 Start monitoring location-provider changes 02-02 14:47:34.423 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:34.424 DEBUG [b prune] ℹ️ PRUNE -1 days 02-02 14:47:34.427 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:34.446 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:34.447 INFO [ActivityRecognitionService b] 🎾 Start motion-activity updates 02-02 14:47:34.449 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: connectivitychange 02-02 14:47:34.472 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:34.472 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:34.474 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: providerchange 02-02 14:47:34.478 INFO [b persist] ✅ INSERT: e31cc435-c79d-48f8-a526-8c8e3cc9062d 02-02 14:47:34.489 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:34.490 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 02-02 14:47:35.330 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 1 02-02 14:47:35.335 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 2 02-02 14:47:35.336 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 3 02-02 14:47:39.110 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:47:39.115 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=29 et=+3d1h34m33s21ms alt=263.79998779296875 vel=1.5546426 bear=315.6494 vAcc=1 sAcc=??? bAcc=???], age: 80ms, time: 1643809659617 02-02 14:47:39.117 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:47:39.119 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 24.017 02-02 14:47:39.124 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: STOP_TIMEOUT in 300000ms (jobID: 2059034116) 02-02 14:47:39.140 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:47:39.143 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:39.144 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 02-02 14:47:39.146 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 4 02-02 14:47:39.150 INFO [b persist] ✅ INSERT: 7bce9922-72e8-46bc-b626-cc84f296002e 02-02 14:47:40.840 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 1 02-02 14:47:40.842 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 2 02-02 14:47:40.855 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 3 02-02 14:47:40.891 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 4 02-02 14:47:41.094 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:47:41.099 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=24 et=+3d1h34m35s20ms alt=263.79998779296875 vel=0.0 bear=90.0 vAcc=1 sAcc=??? bAcc=???], age: 66ms, time: 1643809661616 02-02 14:47:41.101 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:47:41.101 INFO [TrackingService b] ℹ️ Distance from stoppedAtLocation: -41.443478 02-02 14:47:41.102 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:47:41.102 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 23.832 02-02 14:47:41.134 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:41.135 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 02-02 14:47:41.138 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 5 02-02 14:47:41.151 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 5 02-02 14:47:41.156 INFO [b persist] ✅ INSERT: 57dd8f4f-381c-40f8-bd3c-a3abfd4d2d99 02-02 14:47:48.700 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 02-02 14:47:48.716 DEBUG [ActivityRecognitionService a] 🚘 ️DetectedActivity [type=UNKNOWN, confidence=40] 02-02 14:47:48.762 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 02-02 14:47:48.863 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 02-02 14:47:48.879 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:48.881 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: activitychange 02-02 14:47:48.881 INFO [HeartbeatService c] 🔴 Stop heartbeat 02-02 14:47:48.884 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 6 02-02 14:47:48.898 INFO [TSScheduleManager cancelOneShot] ⏰ Cancel OneShot: STOP_TIMEOUT 02-02 14:47:48.913 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 6 02-02 14:47:48.923 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 02-02 14:47:48.932 INFO [TrackingService a] 🔵 setPace: true → true 02-02 14:47:48.933 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:47:48.934 INFO [ActivityRecognitionService a] ╔═════════════════════════════════════════════ ║ Motion Transition Result ╠═════════════════════════════════════════════ ╟─ 🎾 ENTER: walking ╚═════════════════════════════════════════════ 02-02 14:47:48.935 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 02-02 14:47:48.939 INFO [TrackingService h] ╔═════════════════════════════════════════════ ║ TrackingService motionchange: true ╠═════════════════════════════════════════════ 02-02 14:47:48.941 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:47:49.196 DEBUG [AbstractService onDestroy] 🔴 ActivityRecognitionService destroyed 02-02 14:47:49.489 DEBUG [AbstractService a] 🎾 LocationRequestService [eventCount: 1] 02-02 14:47:49.498 INFO [LocationRequestService b] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 1 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=22 et=+3d1h34m43s386ms alt=263.6999816894531 vel=0.002440385 bear=90.00043 vAcc=1 sAcc=??? bAcc=???], age: 97ms, time: 1643809670001 02-02 14:47:49.529 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: true 02-02 14:47:49.530 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 22.828 02-02 14:47:49.542 INFO [TSLocationManager requestLocationUpdates] 🎾 Location-services: ON 02-02 14:47:49.546 INFO [TSLocationManager requestLocationUpdates] 🎾 Location-services: ON 02-02 14:47:49.547 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -2 02-02 14:47:49.548 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 02-02 14:47:49.561 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:49.562 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 02-02 14:47:49.564 DEBUG [LocationRequestService b] SingleLocationRequest 1 isFinished? true 02-02 14:47:49.566 DEBUG [AbstractService a] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 02-02 14:47:49.575 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 7 02-02 14:47:49.576 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService destroyed 02-02 14:47:49.579 INFO [b persist] ✅ INSERT: c41001e1-cfde-43a8-ae69-85edbd3efcd1 02-02 14:47:49.585 INFO [ActivityRecognitionService b] 🎾 Start motion-activity updates 02-02 14:47:49.589 INFO [TSLocationManager removeLocationUpdates] 🔴 Location-services: OFF 02-02 14:47:49.596 INFO [TSLocationManager requestLocationUpdates] 🎾 Location-services: ON 02-02 14:47:49.598 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -2 02-02 14:47:49.609 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:49.610 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: motionchange 02-02 14:47:49.614 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 8 02-02 14:47:49.616 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 7 02-02 14:47:49.639 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 8 02-02 14:47:49.654 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:47:49.658 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=22 et=+3d1h34m43s386ms alt=263.6999816894531 vel=0.002440385 bear=90.00043 vAcc=1 sAcc=??? bAcc=???], age: 258ms, time: 1643809670001 02-02 14:47:49.659 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:47:49.659 DEBUG [TSLocationManager onLocationResult] ℹ️ IGNORED: same as last location 02-02 14:47:49.662 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:47:56.494 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:47:56.502 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=14 et=+3d1h34m50s405ms alt=263.6999816894531 vel=0.027283628 bear=90.31784 vAcc=1 sAcc=??? bAcc=???], age: 80ms, time: 1643809677001 02-02 14:47:56.504 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:47:56.505 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 21.824 02-02 14:47:56.507 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:47:56.542 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:47:56.543 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 02-02 14:47:56.546 INFO [b persist] ✅ INSERT: 0c604741-673d-4ff5-ae04-4d39b2e98e82 02-02 14:47:56.546 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 9 02-02 14:47:56.554 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 9 02-02 14:48:08.715 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:48:08.722 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=11 et=+3d1h35m2s630ms alt=263.6999816894531 vel=0.79370815 bear=143.9255 vAcc=1 sAcc=??? bAcc=???], age: 76ms, time: 1643809688642 02-02 14:48:08.725 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:48:08.726 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 11.53847, apparent speed: 0.94391936 02-02 14:48:08.727 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 20.5965 02-02 14:48:08.728 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:48:08.753 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:48:08.753 INFO [b persist] ✅ INSERT: c5989eed-ee7d-47c6-8f21-7d971cccf8ae 02-02 14:48:08.754 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 02-02 14:48:08.763 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 10 02-02 14:48:08.774 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 10 02-02 14:48:09.826 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 02-02 14:48:09.830 DEBUG [ActivityRecognitionService a] 🚘 ️DetectedActivity [type=UNKNOWN, confidence=40] 02-02 14:48:09.855 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 02-02 14:48:10.009 DEBUG [AbstractService a] 🎾 ActivityRecognitionService [eventCount: 1] 02-02 14:48:10.015 INFO [ActivityRecognitionService a] ╔═════════════════════════════════════════════ ║ Motion Transition Result ╠═════════════════════════════════════════════ ╟─ 🎾 ENTER: walking ╚═════════════════════════════════════════════ 02-02 14:48:10.017 DEBUG [AbstractService a] ⚙️︎ finish ActivityRecognitionService [eventCount: 0, sticky: false] 02-02 14:48:10.031 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:48:10.033 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: activitychange 02-02 14:48:10.045 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 11 02-02 14:48:10.048 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 11 02-02 14:48:10.273 DEBUG [AbstractService onDestroy] 🔴 ActivityRecognitionService destroyed 02-02 14:48:22.476 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:48:22.480 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=15 et=+3d1h35m16s406ms alt=263.6999816894531 vel=1.1009822 bear=166.76279 vAcc=1 sAcc=??? bAcc=???], age: 61ms, time: 1643809703001 02-02 14:48:22.486 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:48:22.487 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:48:22.490 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 19.369 02-02 14:48:22.513 INFO [b persist] ✅ INSERT: f62e5e24-4785-4293-b6ad-91ee60866c42 02-02 14:48:22.526 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:48:22.527 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 02-02 14:48:22.538 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 12 02-02 14:48:22.545 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 12 02-02 14:48:54.477 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:48:54.483 DEBUG [TrackingService b] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 46******,9****** hAcc=15 et=+3d1h35m48s403ms alt=263.6999816894531 vel=0.0550971 bear=359.9949 vAcc=1 sAcc=??? bAcc=???], age: 67ms, time: 1643809735001 02-02 14:48:54.489 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════ 02-02 14:48:54.491 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 16.639847, apparent speed: 0.52004397 02-02 14:48:54.492 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 02-02 14:48:54.494 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 17.2325 02-02 14:48:54.513 DEBUG [BackgroundGeolocation isMainActivityActive] NO 02-02 14:48:54.513 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 02-02 14:48:54.517 INFO [b persist] ✅ INSERT: 1098b045-1192-4c20-bfcf-178ef9227e67 02-02 14:48:54.521 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 13 02-02 14:48:54.529 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 13 02-02 14:49:41.499 DEBUG [AbstractService a] 🎾 TrackingService [eventCount: 1] 02-02 14:49:41.506 DEBUG [TrackingService b] ```
christocracy commented 2 years ago

When you see this in the logs:

02-02 14:47:34.370 INFO [LoggerFacade$a a] 
╔═════════════════════════════════════════════
║ TSLocationManager version: 3.1.35 (391)
╠═════════════════════════════════════════════
╟─ HUAWEI JSN-L21 @ 9 (react-native)

Your app has relaunched after the OS has terminated your app. There's nothing the plugin can do to prevent the OS terminating an app in the background. Huawei is one of the worst offenders for dirty tricks like this. See https://dontkillmyapp.com

I'm running a test on my Google Pixel 3a with app running in the background:

BackgroundGeolocation.ready({
  stopTimeout: 60,
  locationAuthorizationRequest: 'WhenInUse',
  distanceFilter: 0,
  locationUpdateInterval: 1000
}).then((state) => {
  BackgroundGeolocation.changePace(true);
});

I'm seeing a location update every second with the app minimized and screen off.

christocracy commented 2 years ago

In log file we found that activity tracking stops here: 02-02 14:41:42.583 DEBUG [AbstractService a] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true]

This is a normal thing to see in the logs. This is merely the plugin's foreground-service asking the question "Should I stop?". When sticky: true, the answer will be NO. "sticky" means "stay alive".

christocracy commented 2 years ago

30 minutes sitting in the background with screen off and the plugin continues to operate with WhenInUse, recording a location every second.

ironmanromeo commented 2 years ago

Ok. We have the same issue on iOS: I mean: now we should stop tracking service, save track, delete and then re-start without leaving the app. Android seem to be ok, iOS no. Can you try the same? Stop and the re-start. Thx

christocracy commented 2 years ago

iOS

BackgroundGeolocation.ready({
  debug: false,
  stopTimeout: 60,
  locationAuthorizationRequest: 'WhenInUse',
  distanceFilter: 0,
  pausesLocationUpdatesAutomatically: false,
  disableStopDetection: true
}).then((state) => {
  BackgroundGeolocation.changePace(true);
});

I let it run for 60 minutes so far, I still see the blue location indicator activated, signally the app is still alive in the background and the plugin continuing to record location.

IMG_0690

Bringing the app to foreground, I see the locations that were recorded over the last hour drawn upon the map.

IMG_0688

There is no issue with iOS.

ironmanromeo commented 2 years ago

Check this log:

There are 2 start, the first at App start, the second after stopping and re-starting the service:

2022-02-02 18:59:42.813 🔵-[BackgroundTaskManager onPreventSuspendTimer:] Prevent-suspend timer fired! (bg time remaining: 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000)

after Prevent-suspend timer fired!

then more down...

2022-02-02 19:01:57.139 ⚠️-[BackgroundTaskManager createBackgroundTask]_block_invoke FORCE KILL BACKGROUND TASK: 5, remaining time: 3.864035


Logs ``` 2022-02-02 18:21:19.803 ℹ️-[TSConfig persist] 2022-02-02 18:21:19.804 🔵-[TSLocationManager ready] 2022-02-02 18:21:21.425 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-02 18:21:21.425 🔵-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-02 18:21:21.425 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-02 18:21:21.425 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-02 18:21:21.426 ℹ️-[TSConfig persist] 2022-02-02 18:21:21.428 🔵-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 4 2022-02-02 18:21:29.639 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager start] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:29.639 ℹ️-[TSLocationManager doStart:] trackingMode: 1 2022-02-02 18:21:29.639 ℹ️-[TSConfig persist] 2022-02-02 18:21:29.640 🎾-[TSGeofenceManager start] 2022-02-02 18:21:29.640 ℹ️-[TSConfig persist] 2022-02-02 18:21:29.640 🎾-[SOMotionDetector startDetection] 2022-02-02 18:21:29.640 🔵-[TSLocationManager setPace:] 1 2022-02-02 18:21:29.641 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:21:29.641 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:29.641 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:29.642 🔵-[TSLocationManager changePace:] isMoving: 1 2022-02-02 18:21:29.642 🔵-[TSLocationManager setPace:] 1 2022-02-02 18:21:29.643 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:21:29.643 🎾-[TSLocationManager startMonitoringBackgroundFetch] BackgroundFetch: ON 2022-02-02 18:21:29.645 ℹ️-[TSLocationManager startMonitoringBackgroundFetch]_block_invoke Configured BackgroundFetch 2022-02-02 18:21:29.645 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:21:29.648 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:21:29.649 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 18:21:25 Central European Standard Time 2022-02-02 18:21:29.649 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 4.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:29.649 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 18:21:25 Central European Standard Time 2022-02-02 18:21:29.649 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:21:29.649 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 13.6 2022-02-02 18:21:29.649 🎾-[TSLocationManager startMonitoringSignificantLocationChanges] 2022-02-02 18:21:29.650 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:21:29.650 ✅-[LocationDAO unlock]_block_invoke UNLOCKED ALL RECORDS 2022-02-02 18:21:29.651 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 4524A59B-DC05-4FD2-93BB-F4A9948ECC1B 2022-02-02 18:21:29.651 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:29.651 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:30.509 ✅-[SOMotionDetector startDetection]_block_invoke Enabled M7 MotionActivity updates 2022-02-02 18:21:30.509 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:31.658 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:32.854 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 18:21:32 Central European Standard Time 2022-02-02 18:21:32.854 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:32.854 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 13.6 2022-02-02 18:21:32.856 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: F46C4B9D-4C75-4855-9715-840DAA905E0C 2022-02-02 18:21:32.856 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:32.856 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:32.912 ✅-[BackgroundTaskManager createBackgroundTask] 5 2022-02-02 18:21:32.912 🔵-[TSLocationManager onSuspend:] enabled? 1) 2022-02-02 18:21:32.917 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:21:34.643 🔵-[TSLocationManager changePace:] isMoving: 1 2022-02-02 18:21:34.643 🔵-[TSLocationManager setPace:] 1 2022-02-02 18:21:34.643 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:21:34.645 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:21:37.130 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:37.774 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:38.741 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:39.431 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 18:21:39 Central European Standard Time 2022-02-02 18:21:39.431 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:39.432 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 18:21:39 Central European Standard Time 2022-02-02 18:21:39.432 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:21:39.433 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 13.6 2022-02-02 18:21:39.436 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:21:39.441 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: DEA186F1-5B51-426B-83C5-DCE622E8A373 2022-02-02 18:21:39.441 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:39.441 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:44.218 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:46.796 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:51.307 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:21:55.816 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:22:05.802 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:22:09.671 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:22:12.902 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:22:13.540 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:22:33.920 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:23:34.880 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:24:35.029 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:25:35.884 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:26:19.876 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 18:26:36.884 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:27:37.881 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:28:38.880 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:29:39.882 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:30:40.026 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:31:19.873 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 18:31:40.981 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:32:41.977 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:33:42.978 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:34:43.977 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:35:44.978 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:36:19.871 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 18:36:45.024 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:37:45.878 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:38:46.871 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:39:47.877 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:40:48.877 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:41:19.869 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 18:41:49.882 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:42:50.021 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:43:50.974 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:44:03.285 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:44:06.511 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:44:09.087 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:44:51.968 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:45:27.481 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:45:33.285 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:45:34.576 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:45:36.184 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:45:36.835 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:45:50.686 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:45:52.974 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:45:54.556 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:10.018 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:11.307 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:13.239 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:13.883 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:16.138 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:17.429 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:19.980 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 18:46:27.418 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:32.895 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:44.495 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:53.194 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:53.981 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:46:56.094 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:46:59.641 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:47:00.607 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:47:12.529 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:47:27.998 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:47:29.286 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:47:38.950 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:47:47.975 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:47:49.907 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:47:54.982 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:47:58.287 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:48:01.509 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:48:02.153 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:48:55.019 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:49:55.977 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:50:42.485 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:50:45.708 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:50:57.016 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:51:19.910 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 18:51:58.015 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:52:58.919 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:53:14.124 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:53:17.347 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:53:18.639 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:53:59.920 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:55:00.064 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:56:01.017 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:56:19.910 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 18:57:02.013 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:57:46.370 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:57:54.427 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:57:57.972 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:57:59.261 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:00.550 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:03.020 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:58:03.448 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:20.849 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:24.715 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:25.357 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:29.870 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:31.805 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:43.407 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:48.561 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:49.527 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:56.940 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:58:57.905 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:00.481 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:04.023 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:59:07.895 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:08.862 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:10.471 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:15.304 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:20.786 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:23.042 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:23.708 🔵-[BackgroundTaskManager onResume:] Current preventSuspend tasks: 1 2022-02-02 18:59:23.708 🔵-[TSLocationManager onResume:] enabled? 1 2022-02-02 18:59:23.708 ℹ️-[LocationDAO purge:] 1 2022-02-02 18:59:23.711 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:59:23.712 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:23.712 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:24.653 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:25.620 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:26.583 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:26.625 ℹ️-[TSConfig persist] 2022-02-02 18:59:26.626 🔵-[TSLocationManager changePace:] isMoving: 0 2022-02-02 18:59:26.626 🔵-[TSLocationManager setPace:] 0 2022-02-02 18:59:26.627 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:59:26.627 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager stop] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:26.627 ℹ️-[TSConfig persist] 2022-02-02 18:59:26.628 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:59:26.628 ℹ️-[TSLocationManager clearLastOdometerLocation] 2022-02-02 18:59:26.628 🔴-[TSGeofenceManager stop] 2022-02-02 18:59:26.628 🔴-[TSGeofenceManager stopMonitoringGeofences] 2022-02-02 18:59:26.628 🔴-[SOMotionDetector stopDetection] OFF 2022-02-02 18:59:26.628 🔴-[TSLocationManager stopUpdatingLocation] 2022-02-02 18:59:26.628 🔴-[TSLocationManager stopMonitoringBackgroundFetch] BackgroundFetch: OFF 2022-02-02 18:59:26.629 🔴-[TSLocationManager stopMonitoringSignificantLocationChanges] 2022-02-02 18:59:30.505 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager start] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:30.505 ℹ️-[TSLocationManager doStart:] trackingMode: 1 2022-02-02 18:59:30.505 ℹ️-[TSConfig persist] 2022-02-02 18:59:30.506 ℹ️-[TSConfig persist] 2022-02-02 18:59:30.506 🎾-[TSGeofenceManager start] 2022-02-02 18:59:30.506 ℹ️-[TSConfig persist] 2022-02-02 18:59:30.507 🎾-[SOMotionDetector startDetection] 2022-02-02 18:59:30.507 🔵-[TSLocationManager setPace:] 1 2022-02-02 18:59:30.507 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:59:30.508 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:30.508 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:30.508 🔵-[TSLocationManager changePace:] isMoving: 1 2022-02-02 18:59:30.508 🔵-[TSLocationManager setPace:] 1 2022-02-02 18:59:30.509 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:59:30.510 🎾-[TSLocationManager startMonitoringBackgroundFetch] BackgroundFetch: ON 2022-02-02 18:59:30.510 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:59:30.513 ✅-[SOMotionDetector startDetection]_block_invoke Enabled M7 MotionActivity updates 2022-02-02 18:59:30.514 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:59:30.515 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 18:59:29 Central European Standard Time 2022-02-02 18:59:30.515 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 0.6s ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:30.515 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 18:59:29 Central European Standard Time 2022-02-02 18:59:30.515 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:59:30.515 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 13.6 2022-02-02 18:59:30.515 🎾-[TSLocationManager startMonitoringSignificantLocationChanges] 2022-02-02 18:59:30.516 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 2FBB9CBA-FAF5-413F-896B-A36A94795135 2022-02-02 18:59:30.516 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:59:30.516 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:30.516 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:30.516 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:31.420 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:32.809 🔵-[BackgroundTaskManager startPreventSuspendTimer:] BG time remaining: 20 | Total tasks: 1 2022-02-02 18:59:32.809 🔵-[TSLocationManager onSuspend:] enabled? 1) 2022-02-02 18:59:32.817 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 18:59:33.032 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:35.504 🔵-[TSLocationManager changePace:] isMoving: 1 2022-02-02 18:59:35.504 🔵-[TSLocationManager setPace:] 1 2022-02-02 18:59:35.505 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:59:35.506 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:59:37.461 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 18:59:37 Central European Standard Time 2022-02-02 18:59:37.461 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:37.461 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 18:59:37 Central European Standard Time 2022-02-02 18:59:37.461 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 18:59:37.461 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 13.6 2022-02-02 18:59:37.462 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: B2C06120-11FD-42EB-86E5-999529F9C99C 2022-02-02 18:59:37.463 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:59:37.463 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:37.463 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:37.871 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:41.728 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:42.696 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:42.813 🔵-[BackgroundTaskManager onPreventSuspendTimer:] Prevent-suspend timer fired! (bg time remaining: 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000) 2022-02-02 18:59:42.815 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 18:59:56.366 📍<+45.64576812,+9.21456973> +/- 224.93m (speed 0.01 mps / course -1.00) @ 02/02/22, 18:59:56 Central European Standard Time 2022-02-02 18:59:56.366 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:56.366 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 13.6 2022-02-02 18:59:56.374 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 608FD90D-4E08-49AB-9384-04ACE427A3EE 2022-02-02 18:59:56.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:56.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:57.367 📍<+45.64590300,+9.21458239> +/- 311.56m (speed 0.00 mps / course -1.00) @ 02/02/22, 18:59:57 Central European Standard Time 2022-02-02 18:59:57.367 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:57.367 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 119.3 2022-02-02 18:59:57.374 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 550C5A6D-5560-4F68-AA31-3289492625F3 2022-02-02 18:59:57.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 18:59:57.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:05.361 📍<+45.64582085,+9.21464855> +/- 341.44m (speed 0.01 mps / course -1.00) @ 02/02/22, 19:00:05 Central European Standard Time 2022-02-02 19:00:05.361 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:05.361 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 224.9 2022-02-02 19:00:05.365 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 6B898DAA-54F3-4C13-A872-3076E2EDCBA7 2022-02-02 19:00:05.366 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:05.366 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:06.366 📍<+45.64573004,+9.21472169> +/- 358.59m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:06 Central European Standard Time 2022-02-02 19:00:06.366 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:06.366 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 268.2 2022-02-02 19:00:06.373 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: D6AC5904-3938-49CF-A824-6BB14AC26446 2022-02-02 19:00:06.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:06.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:07.365 📍<+45.64547440,+9.21455330> +/- 81.86m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:07 Central European Standard Time 2022-02-02 19:00:07.365 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:07.365 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 224.9 2022-02-02 19:00:07.372 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 141A17C7-6232-4779-A776-F6AF5082C210 2022-02-02 19:00:07.372 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:07.372 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:08.363 📍<+45.64547285,+9.21439522> +/- 80.03m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:08 Central European Standard Time 2022-02-02 19:00:08.364 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:08.364 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 153.4 2022-02-02 19:00:08.371 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 573ADAD3-D6F5-457D-A9E8-D58058D58314 2022-02-02 19:00:08.371 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:08.371 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:17.367 📍<+45.64556358,+9.21431819> +/- 272.48m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:17 Central European Standard Time 2022-02-02 19:00:17.367 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:17.367 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 224.9 2022-02-02 19:00:17.374 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: E1DBF6E9-1981-4DAA-84DD-50553E6C45CB 2022-02-02 19:00:17.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:17.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:22.365 📍<+45.64560452,+9.21426942> +/- 215.67m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:22 Central European Standard Time 2022-02-02 19:00:22.365 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:22.366 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 220.3 2022-02-02 19:00:22.373 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 2010A6BB-6002-451E-8580-574E8CE9838C 2022-02-02 19:00:22.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:22.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:33.365 📍<+45.64560394,+9.21411828> +/- 297.17m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:33 Central European Standard Time 2022-02-02 19:00:33.365 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:33.365 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 224.9 2022-02-02 19:00:33.377 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 66429386-AFC9-4068-B9A8-5C7A9E6C1876 2022-02-02 19:00:33.377 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:33.377 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:33.788 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 19:00:34.366 📍<+45.64553584,+9.21437393> +/- 299.25m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:34 Central European Standard Time 2022-02-02 19:00:34.366 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:34.366 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 272.5 2022-02-02 19:00:34.373 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 35AF1EC7-47DB-49EE-A661-099A52D43EA5 2022-02-02 19:00:34.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:34.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:35.366 📍<+45.64553584,+9.21437393> +/- 247.20m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:35 Central European Standard Time 2022-02-02 19:00:35.366 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:35.366 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 272.5 2022-02-02 19:00:35.373 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 190D6F21-BCBE-4912-BBAE-01C68FD506BF 2022-02-02 19:00:35.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:35.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:42.368 📍<+45.64558377,+9.21419489> +/- 244.54m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:42 Central European Standard Time 2022-02-02 19:00:42.368 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:42.368 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 272.5 2022-02-02 19:00:42.375 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 4AEC142C-C470-42C4-9C64-F220AFFF09BD 2022-02-02 19:00:42.376 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:42.376 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:43.367 📍<+45.64560004,+9.21413412> +/- 81.96m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:43 Central European Standard Time 2022-02-02 19:00:43.367 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:43.367 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 247.2 2022-02-02 19:00:43.374 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 164B491B-3568-46DD-AA77-0880EF307FFA 2022-02-02 19:00:43.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:43.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:45.367 📍<+45.64560004,+9.21413412> +/- 37.40m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:45 Central European Standard Time 2022-02-02 19:00:45.367 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:45.367 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 244.5 2022-02-02 19:00:45.367 ℹ️-[TSConfig persist] 2022-02-02 19:00:45.371 🔵-[TSConfig incrementOdometer:] 27.4 2022-02-02 19:00:45.378 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 6B3408D6-56EC-4AEF-8334-91A0431D8826 2022-02-02 19:00:45.379 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:45.379 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:52.367 📍<+45.64553357,+9.21444610> +/- 35.64m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:52 Central European Standard Time 2022-02-02 19:00:52.367 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:52.367 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 215.7 2022-02-02 19:00:52.375 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 933C1822-ECEF-4D94-962F-F3084B785250 2022-02-02 19:00:52.375 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:52.375 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:59.364 📍<+45.64553357,+9.21444610> +/- 24.68m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:00:59 Central European Standard Time 2022-02-02 19:00:59.364 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:59.364 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 215.7 2022-02-02 19:00:59.372 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 73CE45EB-8BE3-45D3-99B4-A8A19CB28BC1 2022-02-02 19:00:59.372 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:00:59.372 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:07.364 📍<+45.64530793,+9.21413194> +/- 391.53m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:07 Central European Standard Time 2022-02-02 19:01:07.365 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:07.365 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 244.5 2022-02-02 19:01:07.372 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: DF4A1820-FC04-4148-AA56-16D59EAF7DAF 2022-02-02 19:01:07.372 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:07.372 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:08.369 📍<+45.64530793,+9.21413194> +/- 377.02m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:08 Central European Standard Time 2022-02-02 19:01:08.369 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:08.369 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 244.5 2022-02-02 19:01:08.377 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 28241E93-EA2B-4033-AD96-8D1A481FFE14 2022-02-02 19:01:08.377 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:08.377 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:09.366 📍<+45.64553701,+9.21431911> +/- 109.82m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:09 Central European Standard Time 2022-02-02 19:01:09.366 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:09.366 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 244.5 2022-02-02 19:01:09.373 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 86D299BF-2FD4-4281-88C9-551F4D52D54E 2022-02-02 19:01:09.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:09.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:10.366 📍<+45.64557930,+9.21442690> +/- 48.55m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:10 Central European Standard Time 2022-02-02 19:01:10.366 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:10.366 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 109.8 2022-02-02 19:01:10.374 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 2232F645-50C6-48DE-A5C6-4531E3CCA3A8 2022-02-02 19:01:10.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:10.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:11.365 📍<+45.64574689,+9.21430344> +/- 52.63m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:11 Central European Standard Time 2022-02-02 19:01:11.365 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:11.365 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 82.0 2022-02-02 19:01:11.373 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: B9A59A99-6819-4E5A-B8A9-2874AFA1D07C 2022-02-02 19:01:11.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:11.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:12.367 📍<+45.64587459,+9.21427553> +/- 120.75m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:12 Central European Standard Time 2022-02-02 19:01:12.367 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:12.367 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 82.0 2022-02-02 19:01:12.374 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 8530913D-5C18-4445-8C92-B2136F610CCA 2022-02-02 19:01:12.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:12.374 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:15.367 📍<+45.64580808,+9.21453478> +/- 98.18m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:15 Central European Standard Time 2022-02-02 19:01:15.367 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:15.367 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 82.0 2022-02-02 19:01:15.375 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: D1822B88-167D-47A0-AEA1-85FF015D9604 2022-02-02 19:01:15.375 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:15.375 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:17.367 📍<+45.64555692,+9.21458666> +/- 82.01m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:17 Central European Standard Time 2022-02-02 19:01:17.367 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:17.367 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 82.0 2022-02-02 19:01:17.375 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 1F1CE8B2-CEE5-491C-94BE-074BD2B71749 2022-02-02 19:01:17.375 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:17.375 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:20.008 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 19:01:21.365 📍<+45.64555692,+9.21458666> +/- 37.00m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:21 Central European Standard Time 2022-02-02 19:01:21.365 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:21.365 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 82.0 2022-02-02 19:01:21.373 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: A6F6945E-97B2-4A45-A148-333B3A2C2CFC 2022-02-02 19:01:21.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:21.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:22.368 📍<+45.64569639,+9.21440092> +/- 27.42m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:22 Central European Standard Time 2022-02-02 19:01:22.368 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:22.368 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 82.0 2022-02-02 19:01:22.376 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 2587308F-E735-43B1-9C08-FD92DAB16E6D 2022-02-02 19:01:22.376 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:22.376 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:25.365 📍<+45.64564631,+9.21415164> +/- 127.03m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:25 Central European Standard Time 2022-02-02 19:01:25.365 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:25.365 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 98.2 2022-02-02 19:01:25.373 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 0E9BF145-1B04-47C7-8AF1-D8927B92D9A4 2022-02-02 19:01:25.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:25.373 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:34.750 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 19:01:35.376 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 19:01:35 Central European Standard Time 2022-02-02 19:01:35.376 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:35.376 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 82.0 2022-02-02 19:01:35.376 ℹ️-[TSConfig persist] 2022-02-02 19:01:35.378 🔵-[TSConfig incrementOdometer:] 54.8 2022-02-02 19:01:35.382 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: AFAB83AE-7192-4126-AE76-3AF421B3DC50 2022-02-02 19:01:35.382 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:35.382 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:36.368 📍<+45.64574488,+9.21444912> +/- 166.00m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:36 Central European Standard Time 2022-02-02 19:01:36.368 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:36.369 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 82.0 2022-02-02 19:01:36.376 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 111AC166-4627-4015-8240-C584FE1D9514 2022-02-02 19:01:36.376 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:36.377 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:37.368 📍<+45.64560872,+9.21450066> +/- 93.13m (speed 0.00 mps / course -1.00) @ 02/02/22, 19:01:37 Central European Standard Time 2022-02-02 19:01:37.368 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:37.368 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 82.0 2022-02-02 19:01:37.375 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 5B4584EB-C166-418A-806D-8707ACE8ACE8 2022-02-02 19:01:37.376 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:37.376 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:01:57.139 ⚠️-[BackgroundTaskManager createBackgroundTask]_block_invoke FORCE KILL BACKGROUND TASK: 5, remaining time: 3.864035 2022-02-02 19:01:57.139 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 5 OF ( 5 ) 2022-02-02 19:08:16.442 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 19:08:16.442 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 19:08:16.457 🔵-[TSLocationManager onResume:] enabled? 1 2022-02-02 19:08:16.469 ℹ️-[LocationDAO purge:] 1 2022-02-02 19:08:16.472 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 19:08:16.473 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:08:16.473 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:08:16.511 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 19:08:15 Central European Standard Time 2022-02-02 19:08:16.511 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 0.8s ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:08:16.511 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 82.0 2022-02-02 19:08:16.512 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: BB0FC4C6-A9CF-45AC-BDB9-15DEB2699CAD 2022-02-02 19:08:16.512 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:08:16.512 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:08:18.612 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:08:19.519 ℹ️-[TSConfig persist] 2022-02-02 19:08:19.520 🔵-[TSLocationManager changePace:] isMoving: 0 2022-02-02 19:08:19.520 🔵-[TSLocationManager setPace:] 0 2022-02-02 19:08:19.521 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 19:08:19.521 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager stop] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:08:19.521 ℹ️-[TSConfig persist] 2022-02-02 19:08:19.522 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 19:08:19.522 ℹ️-[TSLocationManager clearLastOdometerLocation] 2022-02-02 19:08:19.522 🔴-[TSGeofenceManager stop] 2022-02-02 19:08:19.522 🔴-[TSGeofenceManager stopMonitoringGeofences] 2022-02-02 19:08:19.522 🔴-[SOMotionDetector stopDetection] OFF 2022-02-02 19:08:19.522 🔴-[TSLocationManager stopUpdatingLocation] 2022-02-02 19:08:19.522 🔴-[TSLocationManager stopMonitoringBackgroundFetch] BackgroundFetch: OFF 2022-02-02 19:08:19.523 🔴-[TSLocationManager stopMonitoringSignificantLocationChanges] 2022-02-02 19:09:17.478 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 19:09:21.093 🔵-[TSLocationManager onSuspend:] enabled? 0) 2022-02-02 19:09:21.099 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 19:10:11.542 🔵-[TSLocationManager onResume:] enabled? 0 2022-02-02 19:10:11.561 ℹ️-[LocationDAO purge:] 1 2022-02-02 19:10:11.564 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 19:10:11.565 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:10:11.565 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:10:13.803 🔵-[TSLocationManager onSuspend:] enabled? 0) 2022-02-02 19:10:13.813 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 19:10:15.811 🔵-[TSLocationManager onResume:] enabled? 0 2022-02-02 19:10:15.811 ℹ️-[LocationDAO purge:] 1 2022-02-02 19:10:15.812 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 19:10:15.814 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:10:15.814 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 19:10:18.220 ℹ️-[TSDBLogger db_save] Log committed ```
ironmanromeo commented 2 years ago

I can't post another log but I can resume:

  1. Start app, start service, all is ok.
  2. stop service
  3. Start service again

In this log at a certain point I found:

2022-02-02 18:59:42.813 🔵-[BackgroundTaskManager onPreventSuspendTimer:] Prevent-suspend timer fired! (bg time remaining: 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000)

them more down...

2022-02-02 19:01:57.139 ⚠️-[BackgroundTaskManager createBackgroundTask]_block_invoke FORCE KILL BACKGROUND TASK: 5, remaining time: 3.864035

2022-02-02 19:01:57.139 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 5 OF (

Service at this point is OFF (no more BLUE tag).

iPhone settings are:

const MacSettings = {
    desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
    preventSuspend: true,
    heartbeatInterval: 60,
    stopTimeout: 60*10,
    locationAuthorizationRequest: 'WhenInUse',
    debug: false,
    logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
    //transistorAuthorizationToken: token,
    distanceFilter: 10,
    isMoving:true,
    pausesLocationUpdatesAutomatically:false,
    showsBackgroundLocationIndicator:true,
    disableStopDetection:true
}

At restart service I force settings with:

const settings = platformSettings()
BackgroundGeolocation.setConfig(settings).then((state)=>{
    console.log(state)
})

supposing stopTimeout should re-start from the beginning.

Now I'll try your configuration.

christocracy commented 2 years ago

Forget about preventSuspend. You don’t need it and it doesn’t work with WhenInUse. It is not necessary when location-services are continually on (pausesLocationUpdatesAutomatically).

to use WhenInUse to track in the background, you MUST call .changePace(true) while your app is in the foreground. You cannot only call .start().

ironmanromeo commented 2 years ago
        const state = await BackgroundGeolocation.ready({
            stopTimeout: 60,
            locationAuthorizationRequest: 'WhenInUse',
            distanceFilter: 0,
            locationUpdateInterval: 1000
        })
        await BackgroundGeolocation.changePace(true);
    const onClickEnable = (value) => {

        (async () => {
            setEnabled(value);
            if (value) {
                await BackgroundGeolocation.start();
                await BackgroundGeolocation.changePace(true)
            } else {
                await BackgroundGeolocation.changePace(false)
                await BackgroundGeolocation.stop();
            }
        })()

    }

I think I should not stop pace ever...

I'm trying this code now....

ironmanromeo commented 2 years ago

In the meanwhile...

I disabled

await BackgroundGeolocation.changePace(false)

since before after stopping and re-starting I saw:

2022-02-02 18:59:42.813 🔵-[BackgroundTaskManager onPreventSuspendTimer:] Prevent-suspend timer fired! (bg time remaining: 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000)

and then simbol BLUE disappear.

Now is still alive despite this unsettling message:

022-02-02 20:31:49.606145+0100 mtbmag[1402:480718] [BackgroundTask] Background Task 27 ("Called by mtbmag, from -[BackgroundTaskManager createBackgroundTask]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.

This is the log from Xcode with my iPhone 13 PRO connected:

  battery: { is_charging: true, level: 1 } }
2022-02-02 20:31:00.901744+0100 mtbmag[1402:481026] [javascript] @@@@@@@@  passato: {"coords":{"altitude":220.4,"latitude":45.64565116945627,"heading":-1,"altitude_accuracy":13.1,"heading_accuracy":-1,"accuracy":13.6,"speed_accuracy":-1,"longitude":9.214478058922504,"speed":-1,"floor":-1},"timestamp":"2022-02-02T19:31:00.844Z","extras":{},"is_moving":true,"uuid":"0EFCBB0B-AAD5-4131-B34C-344CA2078A5E","odometer":54.8,"event":"motionchange","activity":{"confidence":100,"type":"on_foot"},"battery":{"is_charging":true,"level":1}}
2022-02-02 20:31:02.017558+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }
2022-02-02 20:31:02.345575+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'on_foot', confidence: 100 }
2022-02-02 20:31:04.595817+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }
2022-02-02 20:31:07.818794+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 20:31:08.461637+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 20:31:49.606145+0100 mtbmag[1402:480718] [BackgroundTask] Background Task 27 ("Called by mtbmag, from -[BackgroundTaskManager createBackgroundTask]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
2022-02-02 20:32:56.209203+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 20:33:02.663375+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 20:33:09.427922+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }
2022-02-02 20:33:12.640687+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }
2022-02-02 20:33:13.933511+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 20:33:46.207560+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }
2022-02-02 20:33:49.421082+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }
2022-02-02 20:33:50.070104+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 20:37:21.732675+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }
2022-02-02 20:37:24.948670+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }
2022-02-02 20:37:26.883742+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 20:38:20.763856+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }
2022-02-02 20:38:23.984298+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 20:39:02.701392+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }
2022-02-02 20:39:05.914056+0100 mtbmag[1402:481026] [javascript] '[onActivityChange]', { activity: 'still', confidence: 33 }

It looks like the plug-in killed the "Background Task 27" process

I'm right?

ironmanromeo commented 2 years ago

There is something wrong... still having same issue. I'm checking logs.

ironmanromeo commented 2 years ago

after a while app is terminate by the system

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════
2022-02-02 22:47:01.219575+0100 mtbmag[1634:540905] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 22:47:01.864405+0100 mtbmag[1634:540899] 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════
2022-02-02 22:47:01.865409+0100 mtbmag[1634:541594] 🔵-[BackgroundTaskManager startPreventSuspendTimer:] BG time remaining: 29 | Total tasks: 1
2022-02-02 22:47:02.287069+0100 mtbmag[1634:540905] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 22:47:05.089280+0100 mtbmag[1634:540896] 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════
2022-02-02 22:47:05.375626+0100 mtbmag[1634:540905] [javascript] '[onActivityChange]', { activity: 'still', confidence: 100 }
2022-02-02 22:47:21.262449+0100 mtbmag[1634:540896] 🔵-[BackgroundTaskManager onPreventSuspendTimer:] Prevent-suspend timer fired! (bg time remaining: 9.962479)
2022-02-02 22:47:21.264441+0100 mtbmag[1634:541594] ℹ️+[LocationAuthorization run:onCancel:] status: 4
2022-02-02 22:47:28.679886+0100 mtbmag[1634:540614] [BackgroundTask] Background task still not ended after expiration handlers were called: <_UIBackgroundTaskInfo: 0x282598c40>: taskID = 13, taskName = Called by mtbmag, from -[BackgroundTaskManager createBackgroundTask], creationTime = 52204 (elapsed = 929). This app will likely be terminated by the system. Call UIApplication.endBackgroundTask(_:) to avoid this.
2022-02-02 22:47:28.679922+0100 mtbmag[1634:540899] ⚠️-[BackgroundTaskManager createBackgroundTask]_block_invoke FORCE KILL BACKGROUND TASK: 13, remaining time: 2.544883
2022-02-02 22:47:28.680554+0100 mtbmag[1634:540899] ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 13 OF (
    13
)
christocracy commented 2 years ago

Stop using preventSuspend. It doesn’t work with WhenInUse.

ironmanromeo commented 2 years ago

I started previous job with this config. Where do you see it?

const MacSettings = {
    logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
    desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
    stopTimeout: 60,
    locationAuthorizationRequest: 'WhenInUse',
    distanceFilter: 0,
    locationUpdateInterval: 1000
}
{
activityRecognitionInterval = 10000;
activityType = 1;
authorization = {
};
autoSync = 1;
autoSyncThreshold = 0;
batchSync = 0;
debug = 0;
desiredAccuracy = "-2";
desiredOdometerAccuracy = 100;
didDeviceReboot = 0;
didLaunchInBackground = 0;
didRequestUpgradeLocationAuthorization = 0;
disableAutoSyncOnCellular = 0;
disableElasticity = 0;
disableLocationAuthorizationAlert = 0;
disableMotionActivityUpdates = 0;
disableStopDetection = 0;
distanceFilter = 0;
elasticityMultiplier = 1;
enableTimestampMeta = 0;
enabled = 1;
extras = {
};
geofenceInitialTriggerEntry = 1;
geofenceProximityRadius = 2000;
geofenceTemplate = "";
headers = {
};
heartbeatInterval = 60;
httpRootProperty = location;
httpTimeout = 60000;
iOSHasWarnedLocationServicesOff = 0;
isFirstBoot = 1;
isMoving = 0;
lastLocationAuthorizationStatus = 4;
locationAuthorizationAlert = {
cancelButton = Cancel;
instructions = "To use background location, you must enable '{locationAuthorizationRequest}' in the Location Services settings";
settingsButton = Settings;
titleWhenNotEnabled = "Background location is not enabled";
titleWhenOff = "Location services are off";
};
locationAuthorizationRequest = WhenInUse;
locationTemplate = "";
locationTimeout = 60;
locationsOrderDirection = ASC;
logLevel = 5;
logMaxDays = 3;
maxBatchSize = "-1";
maxDaysToPersist = 1;
maxRecordsToPersist = "-1";
method = POST;
minimumActivityRecognitionConfidence = 70;
odometer = "10.94697496611075";
params = {
};
pausesLocationUpdatesAutomatically = 1;
persistMode = 2;
preventSuspend = 0;
schedule = (
);
schedulerEnabled = 0;
showsBackgroundLocationIndicator = 0;
startOnBoot = 0;
stationaryRadius = 25;
stopAfterElapsedMinutes = "-1";
stopDetectionDelay = 0;
stopOnStationary = 0;
stopOnTerminate = 1;
stopTimeout = 60;
trackingMode = 1;
url = "";
useSignificantChangesOnly = 0;
}
Logs ``` 2022-02-02 22:31:33.240 ℹ️-[TSConfig persist] 2022-02-02 22:31:33.243 🔵-[TSLocationManager ready] 2022-02-02 22:31:36.036 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-02 22:31:36.037 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-02 22:31:36.038 🔵-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-02 22:31:36.044 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-02 22:31:36.045 ℹ️-[TSConfig persist] 2022-02-02 22:31:36.047 🔵-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 4 2022-02-02 22:31:40.675 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager start] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:40.675 ℹ️-[TSLocationManager doStart:] trackingMode: 1 2022-02-02 22:31:40.675 ℹ️-[TSConfig persist] 2022-02-02 22:31:40.675 ℹ️-[TSConfig persist] 2022-02-02 22:31:40.675 🎾-[TSGeofenceManager start] 2022-02-02 22:31:40.676 🔵-[TSLocationManager changePace:] isMoving: 1 2022-02-02 22:31:40.676 🔵-[TSLocationManager setPace:] 1 2022-02-02 22:31:40.676 🎾-[SOMotionDetector startDetection] 2022-02-02 22:31:40.676 🎾-[SOMotionDetector startShakeDetection:] sample-rate: 0.2 | M7 DISABLED 2022-02-02 22:31:40.676 🔵-[TSLocationManager setPace:] 1 2022-02-02 22:31:40.676 🎾-[SOMotionDetector startShakeDetection:] sample-rate: 0.2 | M7 DISABLED 2022-02-02 22:31:40.678 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 22:31:40.679 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:40.679 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:40.680 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 22:31:40.680 🎾-[TSLocationManager startMonitoringBackgroundFetch] BackgroundFetch: ON 2022-02-02 22:31:40.682 ℹ️-[TSLocationManager startMonitoringBackgroundFetch]_block_invoke Configured BackgroundFetch 2022-02-02 22:31:40.686 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 22:31:40.686 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 22:31:40.687 📍<+45.64562753,+9.21434174> +/- 6.20m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:40 Central European Standard Time 2022-02-02 22:31:40.687 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 0.7s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:40.688 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64562753,+9.21434174> +/- 6.20m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:40 Central European Standard Time 2022-02-02 22:31:40.688 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 22:31:40.688 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.2 2022-02-02 22:31:40.688 🎾-[TSLocationManager startMonitoringSignificantLocationChanges] 2022-02-02 22:31:40.689 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 22:31:40.690 ✅-[LocationDAO unlock]_block_invoke UNLOCKED ALL RECORDS 2022-02-02 22:31:40.691 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 550AEA9C-78C8-4E1E-A2A9-BC150343E8FE 2022-02-02 22:31:40.691 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:40.691 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:40.794 🔵-[TSLocationManager changePace:] isMoving: 1 2022-02-02 22:31:40.794 🔵-[TSLocationManager setPace:] 1 2022-02-02 22:31:40.794 🎾-[SOMotionDetector startShakeDetection:] sample-rate: 0.2 | M7 DISABLED 2022-02-02 22:31:40.795 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 22:31:40.796 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 22:31:41.035 📍<+45.64562737,+9.21434166> +/- 6.55m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:41 Central European Standard Time 2022-02-02 22:31:41.035 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:41.035 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64562737,+9.21434166> +/- 6.55m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:41 Central European Standard Time 2022-02-02 22:31:41.035 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 22:31:41.036 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4 2022-02-02 22:31:41.038 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: D6869A83-6BF0-409E-9E00-8419C52C848D 2022-02-02 22:31:41.038 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 22:31:41.045 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:41.046 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:41.585 🔴-[SOMotionDetector stopShakeDetection] OFF 2022-02-02 22:31:41.585 ✅-[SOMotionDetector startDetection]_block_invoke Enabled M7 MotionActivity updates 2022-02-02 22:31:42.033 📍<+45.64562762,+9.21434107> +/- 6.38m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:42 Central European Standard Time 2022-02-02 22:31:42.033 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:42.033 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.5 2022-02-02 22:31:42.041 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 46563B12-C058-47E4-A64A-E37384DB604C 2022-02-02 22:31:42.041 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:42.041 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:43.040 📍<+45.64562791,+9.21434107> +/- 6.41m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:43 Central European Standard Time 2022-02-02 22:31:43.040 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:43.040 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.5 2022-02-02 22:31:43.047 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: B5039162-A6D8-4992-8B77-B5C0F5DF9417 2022-02-02 22:31:43.047 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:43.048 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:44.042 📍<+45.64562724,+9.21434040> +/- 6.24m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:44 Central European Standard Time 2022-02-02 22:31:44.042 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:44.043 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4 2022-02-02 22:31:44.051 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 13572B43-D87E-4ACC-B0AD-E1C8C3661725 2022-02-02 22:31:44.053 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:44.053 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:45.039 🔵-[TSLocationManager onSuspend:] enabled? 1) 2022-02-02 22:31:45.047 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:31:45.130 📍<+45.64562598,+9.21433596> +/- 6.50m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:45 Central European Standard Time 2022-02-02 22:31:45.130 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.1s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:45.130 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4 2022-02-02 22:31:45.131 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 4117800C-A966-4EBF-ABB4-4E1CAB2AC7A4 2022-02-02 22:31:45.131 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:45.131 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:46.038 📍<+45.64558489,+9.21434816> +/- 6.06m (speed 0.25 mps / course -1.00) @ 02/02/22, 22:31:46 Central European Standard Time 2022-02-02 22:31:46.038 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:46.039 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4 2022-02-02 22:31:46.053 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: E3A9D289-9CC7-4821-81AF-2E36F3A33B95 2022-02-02 22:31:46.057 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:46.057 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:47.045 📍<+45.64559951,+9.21436276> +/- 5.82m (speed 0.20 mps / course -1.00) @ 02/02/22, 22:31:47 Central European Standard Time 2022-02-02 22:31:47.054 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:47.054 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4 2022-02-02 22:31:47.061 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: DBD9A2EC-211E-4B91-AC2B-290D4FBC6BD2 2022-02-02 22:31:47.061 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:47.061 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:48.051 📍<+45.64560271,+9.21436045> +/- 6.60m (speed 0.12 mps / course -1.00) @ 02/02/22, 22:31:48 Central European Standard Time 2022-02-02 22:31:48.051 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:48.052 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4 2022-02-02 22:31:48.064 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: D6A1026E-409A-4D18-B622-C61804CF143D 2022-02-02 22:31:48.064 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:48.064 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:49.043 📍<+45.64557936,+9.21433086> +/- 7.31m (speed 1.17 mps / course 215.00) @ 02/02/22, 22:31:49 Central European Standard Time 2022-02-02 22:31:49.043 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:49.044 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.3 2022-02-02 22:31:49.061 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: B5711D17-7CB1-4D28-9FB7-3C6F5F9B61E7 2022-02-02 22:31:49.061 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:49.061 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:49.493 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:49.494 🔵-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Stop-detection will trigger in 10 seconds... 2022-02-02 22:31:50.039 📍<+45.64558292,+9.21433144> +/- 7.31m (speed 0.76 mps / course -1.00) @ 02/02/22, 22:31:50 Central European Standard Time 2022-02-02 22:31:50.039 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:50.040 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.2 2022-02-02 22:31:50.054 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: CBA3628C-C1FD-427D-90BD-75B2A6A64BDD 2022-02-02 22:31:50.054 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:50.054 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:52.041 📍<+45.64558672,+9.21433490> +/- 8.66m (speed 0.25 mps / course -1.00) @ 02/02/22, 22:31:52 Central European Standard Time 2022-02-02 22:31:52.041 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:52.041 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.5 2022-02-02 22:31:52.050 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 50991BB9-ECDC-4312-86A5-3286093B1EAD 2022-02-02 22:31:52.059 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:52.059 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:53.040 📍<+45.64560067,+9.21433576> +/- 8.79m (speed 0.12 mps / course -1.00) @ 02/02/22, 22:31:53 Central European Standard Time 2022-02-02 22:31:53.040 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:53.040 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.1 2022-02-02 22:31:53.049 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: C87BDF4F-3052-48C5-8CBE-7122F9DE1018 2022-02-02 22:31:53.055 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:53.055 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:54.040 📍<+45.64562164,+9.21437040> +/- 8.96m (speed 1.24 mps / course 54.45) @ 02/02/22, 22:31:54 Central European Standard Time 2022-02-02 22:31:54.040 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:54.040 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.6 2022-02-02 22:31:54.046 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 07F2DA6F-FE16-4AED-BECD-9F02DAEB2119 2022-02-02 22:31:54.055 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:54.055 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:54.650 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:55.036 📍<+45.64562856,+9.21437874> +/- 8.64m (speed 0.94 mps / course -1.00) @ 02/02/22, 22:31:55 Central European Standard Time 2022-02-02 22:31:55.036 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:55.037 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.3 2022-02-02 22:31:55.051 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 8D110BDE-6597-49EA-A154-DA47DA64B09D 2022-02-02 22:31:55.057 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:55.057 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:56.040 📍<+45.64562941,+9.21438021> +/- 7.59m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:56 Central European Standard Time 2022-02-02 22:31:56.040 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:56.041 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.3 2022-02-02 22:31:56.058 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 143DF098-4657-48E6-B9F3-864930FA80F9 2022-02-02 22:31:56.058 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:56.058 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:57.039 📍<+45.64562941,+9.21438021> +/- 6.56m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:57 Central European Standard Time 2022-02-02 22:31:57.039 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:57.039 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.3 2022-02-02 22:31:57.058 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: E02B3A23-BAB2-44C6-B071-7A5943F33F34 2022-02-02 22:31:57.058 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:57.058 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:57.871 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:58.040 📍<+45.64562941,+9.21438021> +/- 6.01m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:58 Central European Standard Time 2022-02-02 22:31:58.041 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:58.041 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.3 2022-02-02 22:31:58.047 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 302A0096-082F-44AC-AE47-A49CC47E3826 2022-02-02 22:31:58.051 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:58.051 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:58.516 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:59.034 📍<+45.64562941,+9.21438021> +/- 5.71m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:59 Central European Standard Time 2022-02-02 22:31:59.034 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:59.034 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.3 2022-02-02 22:31:59.043 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 70334803-56BB-485C-8BBF-772CFA318C3E 2022-02-02 22:31:59.043 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:59.043 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:31:59.496 🔵-[TSLocationManager beginStopDetection] ⏲Stop-timeout engaged: 3600 s... 2022-02-02 22:31:59.506 ✅-[BackgroundTaskManager createBackgroundTask] 13 2022-02-02 22:31:59.506 🎾-[BackgroundTaskManager startKeepAlive] 2022-02-02 22:31:59.506 🔴-[TSLocationManager stopUpdatingLocation] 2022-02-02 22:32:46.008 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:33:46.980 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:34:47.965 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:35:13.061 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:35:17.574 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:35:18.869 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:35:21.118 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:35:24.342 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:35:25.635 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:35:48.618 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:36:33.561 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 22:36:49.572 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:37:50.565 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:38:51.561 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:39:52.561 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:40:53.561 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:41:33.128 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:41:33.602 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 22:41:36.348 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:41:37.322 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:41:53.618 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:42:54.602 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:43:55.564 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:44:56.563 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:45:57.562 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:46:23.830 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:46:28.338 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:46:28.985 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:46:31.882 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:46:33.565 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 22:46:35.425 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:46:40.905 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:46:57.997 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:46:58.566 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 22:47:01.219 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:47:01.864 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:47:01.865 🔵-[BackgroundTaskManager startPreventSuspendTimer:] BG time remaining: 29 | Total tasks: 1 2022-02-02 22:47:05.089 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 22:47:21.262 🔵-[BackgroundTaskManager onPreventSuspendTimer:] Prevent-suspend timer fired! (bg time remaining: 9.962479) 2022-02-02 22:47:21.264 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 22:47:28.680 ⚠️-[BackgroundTaskManager createBackgroundTask]_block_invoke FORCE KILL BACKGROUND TASK: 13, remaining time: 2.544883 2022-02-02 22:47:28.680 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 13 OF ( 13 ) 2022-02-02 23:33:10.513 🔵-[TSLocationManager onStopTimeout:] stopTimer fired 2022-02-02 23:33:10.513 🔵-[TSLocationManager setPace:] 0 2022-02-02 23:33:10.513 ℹ️-[TSConfig persist] 2022-02-02 23:33:10.519 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-02 23:33:10.520 🔴-[BackgroundTaskManager stopKeepAlive] 2022-02-02 23:33:10.520 ℹ️-[TSLocationManager resetStopTimeoutTimer] 2022-02-02 23:33:10.521 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 23:33:10.523 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-02 23:33:10.598 🔵-[TSLocationManager onResume:] enabled? 1 2022-02-02 23:33:10.603 ℹ️-[LocationDAO purge:] 1 2022-02-02 23:33:10.606 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 23:33:10.609 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-02 23:33:10.609 ⚠️-[BackgroundTaskManager stopBackgroundTask:]_block_invoke Failed to find backgroundTask: 13. Ignoring. 2022-02-02 23:33:10.609 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/66 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:10.610 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:10.610 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:10.615 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 23:33:09 Central European Standard Time 2022-02-02 23:33:10.615 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 0 | df: -1.0m | age: 1.5s ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:10.615 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 23:33:09 Central European Standard Time 2022-02-02 23:33:10.615 ℹ️-[TSConfig persist] 2022-02-02 23:33:10.616 🔵-[TSConfig incrementOdometer:] 10.9 2022-02-02 23:33:10.616 🔵-[TSLocationManager startMonitoringStationaryRegion:radius:] Radius: 25 2022-02-02 23:33:10.617 🔴-[TSLocationManager stopUpdatingLocation] 2022-02-02 23:33:10.617 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.6 2022-02-02 23:33:10.618 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: FA2ED132-097D-4566-8CC1-C99A8F057F9B 2022-02-02 23:33:10.618 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:10.618 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:11.350 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/66 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:14.579 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/66 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:14.864 ℹ️-[TSDBLogger db_save] Log committed 2022-02-02 23:33:17.160 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:17.160 🔵-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Query location-state will trigger in 10 seconds... 2022-02-02 23:33:19.408 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:19.408 ℹ️-[TSLocationManager resetMotionTriggerTimer] 2022-02-02 23:33:20.050 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-02 23:33:20.050 🔵-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Query location-state will trigger in 10 seconds... ```
christocracy commented 2 years ago

I started previous job with this config. Where do you see it?

const MacSettings = {
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
stopTimeout: 60,
locationAuthorizationRequest: 'WhenInUse',
distanceFilter: 0,
locationUpdateInterval: 1000
}

Look at the Config I posted above during my iOS test. You are going around in circles. Read the API docs Config.pausesLocationUpdatesAutomatically. Read the iOS docs for this parameter directly from Apple

Screen Shot 2022-02-02 at 5 44 57 PM
ironmanromeo commented 2 years ago

ops... I made a mistake in copying and pasting from your code. Now I'm testing:

const MacSettings = {
    logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
    desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
    stopTimeout: 60,
    locationAuthorizationRequest: 'WhenInUse',
    distanceFilter: 0,
    pausesLocationUpdatesAutomatically:false,
    disableStopDetection:true
}
ironmanromeo commented 2 years ago

Dead after 5 minutes:

{
activityRecognitionInterval = 10000;
activityType = 1;
authorization = {
};
autoSync = 1;
autoSyncThreshold = 0;
batchSync = 0;
debug = 0;
desiredAccuracy = "-2";
desiredOdometerAccuracy = 100;
didDeviceReboot = 0;
didLaunchInBackground = 0;
didRequestUpgradeLocationAuthorization = 0;
disableAutoSyncOnCellular = 0;
disableElasticity = 0;
disableLocationAuthorizationAlert = 0;
disableMotionActivityUpdates = 0;
disableStopDetection = 1;
distanceFilter = 0;
elasticityMultiplier = 1;
enableTimestampMeta = 0;
enabled = 0;
extras = {
};
geofenceInitialTriggerEntry = 1;
geofenceProximityRadius = 2000;
geofenceTemplate = "";
headers = {
};
heartbeatInterval = 60;
httpRootProperty = location;
httpTimeout = 60000;
iOSHasWarnedLocationServicesOff = 0;
isFirstBoot = 1;
isMoving = 0;
lastLocationAuthorizationStatus = 4;
locationAuthorizationAlert = {
cancelButton = Cancel;
instructions = "To use background location, you must enable '{locationAuthorizationRequest}' in the Location Services settings";
settingsButton = Settings;
titleWhenNotEnabled = "Background location is not enabled";
titleWhenOff = "Location services are off";
};
locationAuthorizationRequest = WhenInUse;
locationTemplate = "";
locationTimeout = 60;
locationsOrderDirection = ASC;
logLevel = 5;
logMaxDays = 3;
maxBatchSize = "-1";
maxDaysToPersist = 1;
maxRecordsToPersist = "-1";
method = POST;
minimumActivityRecognitionConfidence = 70;
odometer = "31.16154209478744";
params = {
};
pausesLocationUpdatesAutomatically = 0;
persistMode = 2;
preventSuspend = 0;
schedule = (
);
schedulerEnabled = 0;
showsBackgroundLocationIndicator = 0;
startOnBoot = 0;
stationaryRadius = 25;
stopAfterElapsedMinutes = "-1";
stopDetectionDelay = 0;
stopOnStationary = 0;
stopOnTerminate = 1;
stopTimeout = 60;
trackingMode = 1;
url = "";
useSignificantChangesOnly = 0;
}

LOGS:

2022-02-02 22:31:33.240 ℹ️-[TSConfig persist] 

2022-02-02 22:31:33.243 🔵-[TSLocationManager ready] 

2022-02-02 22:31:36.036 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4

2022-02-02 22:31:36.037 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4

2022-02-02 22:31:36.038 🔵-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 4

2022-02-02 22:31:36.044 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4

2022-02-02 22:31:36.045 ℹ️-[TSConfig persist] 

2022-02-02 22:31:36.047 🔵-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 4

2022-02-02 22:31:40.675 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager start] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:40.675 ℹ️-[TSLocationManager doStart:] trackingMode: 1

2022-02-02 22:31:40.675 ℹ️-[TSConfig persist] 

2022-02-02 22:31:40.675 ℹ️-[TSConfig persist] 

2022-02-02 22:31:40.675 🎾-[TSGeofenceManager start] 

2022-02-02 22:31:40.676 🔵-[TSLocationManager changePace:] isMoving: 1

2022-02-02 22:31:40.676 🔵-[TSLocationManager setPace:] 1

2022-02-02 22:31:40.676 🎾-[SOMotionDetector startDetection] 

2022-02-02 22:31:40.676 🎾-[SOMotionDetector startShakeDetection:] sample-rate: 0.2 | M7 DISABLED

2022-02-02 22:31:40.676 🔵-[TSLocationManager setPace:] 1

2022-02-02 22:31:40.676 🎾-[SOMotionDetector startShakeDetection:] sample-rate: 0.2 | M7 DISABLED

2022-02-02 22:31:40.678 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON

2022-02-02 22:31:40.679 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:40.679 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:40.680 ℹ️+[LocationAuthorization run:onCancel:] status: 4

2022-02-02 22:31:40.680 🎾-[TSLocationManager startMonitoringBackgroundFetch] BackgroundFetch: ON

2022-02-02 22:31:40.682 ℹ️-[TSLocationManager startMonitoringBackgroundFetch]_block_invoke Configured BackgroundFetch

2022-02-02 22:31:40.686 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON

2022-02-02 22:31:40.686 ℹ️+[LocationAuthorization run:onCancel:] status: 4

2022-02-02 22:31:40.687 
📍<+45.64562753,+9.21434174> +/- 6.20m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:40 Central European Standard Time

2022-02-02 22:31:40.687 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 0.7s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:40.688 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64562753,+9.21434174> +/- 6.20m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:40 Central European Standard Time

2022-02-02 22:31:40.688 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON

2022-02-02 22:31:40.688 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.2

2022-02-02 22:31:40.688 🎾-[TSLocationManager startMonitoringSignificantLocationChanges] 

2022-02-02 22:31:40.689 ℹ️+[LocationAuthorization run:onCancel:] status: 4

2022-02-02 22:31:40.690 ✅-[LocationDAO unlock]_block_invoke UNLOCKED ALL RECORDS

2022-02-02 22:31:40.691 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 550AEA9C-78C8-4E1E-A2A9-BC150343E8FE

2022-02-02 22:31:40.691 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:40.691 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:40.794 🔵-[TSLocationManager changePace:] isMoving: 1

2022-02-02 22:31:40.794 🔵-[TSLocationManager setPace:] 1

2022-02-02 22:31:40.794 🎾-[SOMotionDetector startShakeDetection:] sample-rate: 0.2 | M7 DISABLED

2022-02-02 22:31:40.795 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON

2022-02-02 22:31:40.796 ℹ️+[LocationAuthorization run:onCancel:] status: 4

2022-02-02 22:31:41.035 
📍<+45.64562737,+9.21434166> +/- 6.55m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:41 Central European Standard Time

2022-02-02 22:31:41.035 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:41.035 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64562737,+9.21434166> +/- 6.55m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:41 Central European Standard Time

2022-02-02 22:31:41.035 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON

2022-02-02 22:31:41.036 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4

2022-02-02 22:31:41.038 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: D6869A83-6BF0-409E-9E00-8419C52C848D

2022-02-02 22:31:41.038 ℹ️+[LocationAuthorization run:onCancel:] status: 4

2022-02-02 22:31:41.045 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:41.046 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:41.585 🔴-[SOMotionDetector stopShakeDetection] OFF

2022-02-02 22:31:41.585 ✅-[SOMotionDetector startDetection]_block_invoke Enabled M7 MotionActivity updates

2022-02-02 22:31:42.033 
📍<+45.64562762,+9.21434107> +/- 6.38m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:42 Central European Standard Time

2022-02-02 22:31:42.033 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:42.033 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.5

2022-02-02 22:31:42.041 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 46563B12-C058-47E4-A64A-E37384DB604C

2022-02-02 22:31:42.041 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:42.041 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:43.040 
📍<+45.64562791,+9.21434107> +/- 6.41m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:43 Central European Standard Time

2022-02-02 22:31:43.040 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:43.040 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.5

2022-02-02 22:31:43.047 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: B5039162-A6D8-4992-8B77-B5C0F5DF9417

2022-02-02 22:31:43.047 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:43.048 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:44.042 
📍<+45.64562724,+9.21434040> +/- 6.24m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:44 Central European Standard Time

2022-02-02 22:31:44.042 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:44.043 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4

2022-02-02 22:31:44.051 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 13572B43-D87E-4ACC-B0AD-E1C8C3661725

2022-02-02 22:31:44.053 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:44.053 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:45.039 🔵-[TSLocationManager onSuspend:] enabled? 1)

2022-02-02 22:31:45.047 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:31:45.130 
📍<+45.64562598,+9.21433596> +/- 6.50m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:45 Central European Standard Time

2022-02-02 22:31:45.130 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.1s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:45.130 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4

2022-02-02 22:31:45.131 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 4117800C-A966-4EBF-ABB4-4E1CAB2AC7A4

2022-02-02 22:31:45.131 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:45.131 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:46.038 
📍<+45.64558489,+9.21434816> +/- 6.06m (speed 0.25 mps / course -1.00) @ 02/02/22, 22:31:46 Central European Standard Time

2022-02-02 22:31:46.038 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:46.039 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4

2022-02-02 22:31:46.053 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: E3A9D289-9CC7-4821-81AF-2E36F3A33B95

2022-02-02 22:31:46.057 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:46.057 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:47.045 
📍<+45.64559951,+9.21436276> +/- 5.82m (speed 0.20 mps / course -1.00) @ 02/02/22, 22:31:47 Central European Standard Time

2022-02-02 22:31:47.054 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:47.054 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4

2022-02-02 22:31:47.061 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: DBD9A2EC-211E-4B91-AC2B-290D4FBC6BD2

2022-02-02 22:31:47.061 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:47.061 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:48.051 
📍<+45.64560271,+9.21436045> +/- 6.60m (speed 0.12 mps / course -1.00) @ 02/02/22, 22:31:48 Central European Standard Time

2022-02-02 22:31:48.051 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:48.052 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.4

2022-02-02 22:31:48.064 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: D6A1026E-409A-4D18-B622-C61804CF143D

2022-02-02 22:31:48.064 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:48.064 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:49.043 
📍<+45.64557936,+9.21433086> +/- 7.31m (speed 1.17 mps / course 215.00) @ 02/02/22, 22:31:49 Central European Standard Time

2022-02-02 22:31:49.043 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:49.044 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.3

2022-02-02 22:31:49.061 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: B5711D17-7CB1-4D28-9FB7-3C6F5F9B61E7

2022-02-02 22:31:49.061 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:49.061 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:49.493 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:49.494 🔵-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Stop-detection will trigger in 10 seconds...

2022-02-02 22:31:50.039 
📍<+45.64558292,+9.21433144> +/- 7.31m (speed 0.76 mps / course -1.00) @ 02/02/22, 22:31:50 Central European Standard Time

2022-02-02 22:31:50.039 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:50.040 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.2

2022-02-02 22:31:50.054 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: CBA3628C-C1FD-427D-90BD-75B2A6A64BDD

2022-02-02 22:31:50.054 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:50.054 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:52.041 
📍<+45.64558672,+9.21433490> +/- 8.66m (speed 0.25 mps / course -1.00) @ 02/02/22, 22:31:52 Central European Standard Time

2022-02-02 22:31:52.041 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:52.041 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.5

2022-02-02 22:31:52.050 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 50991BB9-ECDC-4312-86A5-3286093B1EAD

2022-02-02 22:31:52.059 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:52.059 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:53.040 
📍<+45.64560067,+9.21433576> +/- 8.79m (speed 0.12 mps / course -1.00) @ 02/02/22, 22:31:53 Central European Standard Time

2022-02-02 22:31:53.040 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:53.040 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.1

2022-02-02 22:31:53.049 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: C87BDF4F-3052-48C5-8CBE-7122F9DE1018

2022-02-02 22:31:53.055 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:53.055 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:54.040 
📍<+45.64562164,+9.21437040> +/- 8.96m (speed 1.24 mps / course 54.45) @ 02/02/22, 22:31:54 Central European Standard Time

2022-02-02 22:31:54.040 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:54.040 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 6.6

2022-02-02 22:31:54.046 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 07F2DA6F-FE16-4AED-BECD-9F02DAEB2119

2022-02-02 22:31:54.055 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:54.055 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:54.650 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:55.036 
📍<+45.64562856,+9.21437874> +/- 8.64m (speed 0.94 mps / course -1.00) @ 02/02/22, 22:31:55 Central European Standard Time

2022-02-02 22:31:55.036 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:55.037 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.3

2022-02-02 22:31:55.051 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 8D110BDE-6597-49EA-A154-DA47DA64B09D

2022-02-02 22:31:55.057 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:55.057 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:56.040 
📍<+45.64562941,+9.21438021> +/- 7.59m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:56 Central European Standard Time

2022-02-02 22:31:56.040 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:56.041 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.3

2022-02-02 22:31:56.058 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 143DF098-4657-48E6-B9F3-864930FA80F9

2022-02-02 22:31:56.058 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:56.058 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:57.039 
📍<+45.64562941,+9.21438021> +/- 6.56m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:57 Central European Standard Time

2022-02-02 22:31:57.039 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:57.039 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.3

2022-02-02 22:31:57.058 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: E02B3A23-BAB2-44C6-B071-7A5943F33F34

2022-02-02 22:31:57.058 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:57.058 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:57.871 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:58.040 
📍<+45.64562941,+9.21438021> +/- 6.01m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:58 Central European Standard Time

2022-02-02 22:31:58.041 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:58.041 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.3

2022-02-02 22:31:58.047 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 302A0096-082F-44AC-AE47-A49CC47E3826

2022-02-02 22:31:58.051 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:58.051 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:58.516 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:59.034 
📍<+45.64562941,+9.21438021> +/- 5.71m (speed 0.00 mps / course -1.00) @ 02/02/22, 22:31:59 Central European Standard Time

2022-02-02 22:31:59.034 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:59.034 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.3

2022-02-02 22:31:59.043 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 70334803-56BB-485C-8BBF-772CFA318C3E

2022-02-02 22:31:59.043 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:59.043 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:31:59.496 🔵-[TSLocationManager beginStopDetection] ⏲Stop-timeout engaged: 3600 s...

2022-02-02 22:31:59.506 ✅-[BackgroundTaskManager createBackgroundTask] 13

2022-02-02 22:31:59.506 🎾-[BackgroundTaskManager startKeepAlive] 

2022-02-02 22:31:59.506 🔴-[TSLocationManager stopUpdatingLocation] 

2022-02-02 22:32:46.008 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:33:46.980 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:34:47.965 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:35:13.061 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:35:17.574 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:35:18.869 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:35:21.118 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:35:24.342 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:35:25.635 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:35:48.618 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:36:33.561 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2022-02-02 22:36:49.572 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:37:50.565 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:38:51.561 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:39:52.561 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:40:53.561 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:41:33.128 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:41:33.602 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2022-02-02 22:41:36.348 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:41:37.322 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:41:53.618 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:42:54.602 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:43:55.564 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:44:56.563 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:45:57.562 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:46:23.830 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:46:28.338 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:46:28.985 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:46:31.882 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:46:33.565 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2022-02-02 22:46:35.425 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:46:40.905 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:46:57.997 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:46:58.566 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 22:47:01.219 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:47:01.864 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:47:01.865 🔵-[BackgroundTaskManager startPreventSuspendTimer:] BG time remaining: 29 | Total tasks: 1

2022-02-02 22:47:05.089 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 22:47:21.262 🔵-[BackgroundTaskManager onPreventSuspendTimer:] Prevent-suspend timer fired! (bg time remaining: 9.962479)

2022-02-02 22:47:21.264 ℹ️+[LocationAuthorization run:onCancel:] status: 4

2022-02-02 22:47:28.680 ⚠️-[BackgroundTaskManager createBackgroundTask]_block_invoke FORCE KILL BACKGROUND TASK: 13, remaining time: 2.544883

2022-02-02 22:47:28.680 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 13 OF (
    13
)

2022-02-02 23:33:10.513 🔵-[TSLocationManager onStopTimeout:] stopTimer fired

2022-02-02 23:33:10.513 🔵-[TSLocationManager setPace:] 0

2022-02-02 23:33:10.513 ℹ️-[TSConfig persist] 

2022-02-02 23:33:10.519 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON

2022-02-02 23:33:10.520 🔴-[BackgroundTaskManager stopKeepAlive] 

2022-02-02 23:33:10.520 ℹ️-[TSLocationManager resetStopTimeoutTimer] 

2022-02-02 23:33:10.521 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 23:33:10.523 ℹ️-[TSDBLogger db_delete] maxAge: 604800

2022-02-02 23:33:10.598 🔵-[TSLocationManager onResume:] enabled? 1

2022-02-02 23:33:10.603 ℹ️-[LocationDAO purge:] 1

2022-02-02 23:33:10.606 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 23:33:10.609 ℹ️+[LocationAuthorization run:onCancel:] status: 4

2022-02-02 23:33:10.609 ⚠️-[BackgroundTaskManager stopBackgroundTask:]_block_invoke Failed to find backgroundTask: 13.  Ignoring.

2022-02-02 23:33:10.609 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/66 | isMoving: 1
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:10.610 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:10.610 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:10.615 
📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 23:33:09 Central European Standard Time

2022-02-02 23:33:10.615 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 0 | df: -1.0m | age: 1.5s
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:10.615 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 02/02/22, 23:33:09 Central European Standard Time

2022-02-02 23:33:10.615 ℹ️-[TSConfig persist] 

2022-02-02 23:33:10.616 🔵-[TSConfig incrementOdometer:] 10.9

2022-02-02 23:33:10.616 🔵-[TSLocationManager startMonitoringStationaryRegion:radius:] Radius: 25

2022-02-02 23:33:10.617 🔴-[TSLocationManager stopUpdatingLocation] 

2022-02-02 23:33:10.617 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 7.6

2022-02-02 23:33:10.618 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: FA2ED132-097D-4566-8CC1-C99A8F057F9B

2022-02-02 23:33:10.618 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:10.618 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:11.350 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/66 | isMoving: 1
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:14.579 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/66 | isMoving: 1
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:14.864 ℹ️-[TSDBLogger db_save] Log committed

2022-02-02 23:33:17.160 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:17.160 🔵-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Query location-state will trigger in 10 seconds...

2022-02-02 23:33:19.408 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:19.408 ℹ️-[TSLocationManager resetMotionTriggerTimer] 

2022-02-02 23:33:20.050 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1
╚═══════════════════════════════════════════════════════════

2022-02-02 23:33:20.050 🔵-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Query location-state will trigger in 10 seconds...
christocracy commented 2 years ago

I have no idea what you're doing wrong. I suggest you clone the demo app and try testing on it in isolation of your own application code.

ironmanromeo commented 2 years ago

Ok, in the meanwhile... last 2 test dead after 5 minutes exactly.

christocracy commented 2 years ago

And it worked fine for me on the first test today. This Config has existed for about 5 years.

ironmanromeo commented 2 years ago

The first good news is that your application works. Good! So now the ball passes to me.

I don't think there are any major differences in the JS part, but I'll go look in depth tomorrow.

Meanwhile, I noticed there is:

[super application: application didFinishLaunchingWithOptions: launchOptions];

called in the middle and not at the end of the block.

[super application: application didFinishLaunchingWithOptions: launchOptions];

// [REQUIRED] Register BackgroundFetch [[TSBackgroundFetch sharedInstance] didFinishLaunching];

I hope to be able to give the good news to the customer tomorrow. In the meantime, thanks for the support!

ironmanromeo commented 2 years ago

I only ask the courtesy of closing the issue when I am able (hopefully tomorrow) to understand what is causing the conflict and preventing it from functioning correctly. Thank you again.

ironmanromeo commented 2 years ago

I found an error: I was not calling start with await:

BackgroundGeolocation.start() await BackgroundGeolocation.changePace(true)

So sometimes started with correct pace, sometimes not.

now:

await BackgroundGeolocation.start() await BackgroundGeolocation.changePace(true)

ironmanromeo commented 2 years ago

Unfortunately, the problem is not solved. After a certain period of time the app is closed by the system (the splash reappears when I bring it back to the foreground).

Looking for discrepancies between the 2 versions, I notice these differences: .1 ours uses Expo, yours doesn't .2 Due to Expo 44 the most recent version of React Native that we can use is "0.64.3". We can remove Expo if that were the problem, but it would take a lot of work and we'd rather avoid it. .3 super didFinishLaunchingWithOptions was called before: [[TSBackgroundFetch sharedInstance] didFinishLaunching]; We have now fixed it and are testing. .4 as already reported some time ago changing libraries and restarting pod-install a problem occurs in the BackgroundFetch header class that I am going to explain below. I solved it by modifying the import but it might not work. .5 I deleted Expo Location that I had accidentally left in a "When in use" privacy check, but which in theory would not (in my opinion) affect normal operation.

/Users/romeomariani/Documents/Lavori/mtb-mag/mtbmag/ios/Pods/Headers/Public/React-Core/React/RCTEventEmitter.h:15:1: error: duplicate interface definition for class 'RCTEventEmitter'

and other errors.

Changing:

#if __has_include("RCTEventEmitter.h")
#import "RCTEventEmitter.h"
#import "RCTLog.h"
#else
#import <React/RCTEventEmitter.h>
#import <React/RCTLog.h>
#endif

in

#import <React/RCTEventEmitter.h>
#import <React/RCTLog.h>

bypassed the error but we do not know if this circumvention compromises normal functioning.

This is our package.json

{
  "main": "index.js",
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "web": "expo start --web",
    "start": "expo start --dev-client"
  },
  "dependencies": {
    "@expo-google-fonts/inter": "^0.2.0",
    "@expo/vector-icons": "^12.0.5",
    "@react-native-async-storage/async-storage": "~1.15.14",
    "@react-native-community/masked-view": "0.1.11",
    "@react-navigation/bottom-tabs": "^6.0.9",
    "@react-navigation/drawer": "^6.1.8",
    "@react-navigation/native": "^6.0.6",
    "@react-navigation/native-stack": "^6.2.5",
    "expo": "^44.0.5",
    "expo-app-loading": "~1.3.0",
    "expo-asset": "~8.4.5",
    "expo-constants": "~13.0.0",
    "expo-crypto": "~10.1.1",
    "expo-file-system": "~13.1.0",
    "expo-font": "~10.0.4",
    "expo-linking": "~3.0.0",
    "expo-localization": "~12.0.0",
    "expo-notifications": "~0.14.0",
    "expo-screen-orientation": "~4.1.1",
    "expo-secure-store": "~11.1.0",
    "expo-sensors": "~11.1.0",
    "expo-speech": "~10.1.0",
    "expo-splash-screen": "~0.14.1",
    "expo-sqlite": "~10.1.0",
    "expo-status-bar": "~1.2.0",
    "expo-updates": "~0.11.3",
    "geolib": "^3.3.3",
    "gps-to-gpx": "^1.5.1",
    "himalaya": "^1.1.0",
    "intl": "^1.2.5",
    "react": "17.0.2",
    "react-devtools": "^4.22.1",
    "react-dom": "17.0.2",
    "react-hook-form": "^7.22.5",
    "react-intl": "^5.24.0",
    "react-native": "0.64.3",
    "react-native-background-fetch": "^4.0.4",
    "react-native-background-geolocation": "^4.4.4",
    "react-native-chart-kit": "^6.11.0",
    "react-native-dialog": "^9.2.0",
    "react-native-elements": "^3.4.2",
    "react-native-gesture-handler": "~2.1.0",
    "react-native-map-clustering": "^3.4.2",
    "react-native-maps": "0.29.4",
    "react-native-pager-view": "5.4.9",
    "react-native-paper": "^4.11.1",
    "react-native-reanimated": "~2.3.1",
    "react-native-render-html": "^6.3.1",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "~3.10.1",
    "react-native-svg": "12.1.1",
    "react-native-tab-view": "^3.1.1",
    "react-native-vector-icons": "^9.0.0",
    "react-native-web": "0.17.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9"
  },
  "private": true,
  "name": "mtbmag",
  "version": "1.0.0"
}
ironmanromeo commented 2 years ago

Looking at the log the problem occurs here:

2022-02-03 13:16:29.787 ℹ️-[TSDBLogger db_save] Log committed
2022-02-03 13:20:33.511 ℹ️-[TSDBLogger db_delete] maxAge: 259200

Event that starts here: 2022-02-03 12: 58: 34.762 ℹ️- [TSLocationManager init] unexpectedly ends here: 2022-02-03 13: 16: 29.787 ℹ️- [TSDBLogger db_save] Log committed

Logs ``` { activityRecognitionInterval = 10000; activityType = 1; authorization = { }; autoSync = 1; autoSyncThreshold = 0; batchSync = 0; debug = 0; desiredAccuracy = "-2"; desiredOdometerAccuracy = 100; didDeviceReboot = 0; didLaunchInBackground = 0; didRequestUpgradeLocationAuthorization = 0; disableAutoSyncOnCellular = 0; disableElasticity = 0; disableLocationAuthorizationAlert = 0; disableMotionActivityUpdates = 0; disableStopDetection = 1; distanceFilter = 0; elasticityMultiplier = 1; enableTimestampMeta = 0; enabled = 1; extras = { }; geofenceInitialTriggerEntry = 1; geofenceProximityRadius = 2000; geofenceTemplate = ""; headers = { }; heartbeatInterval = 60; httpRootProperty = location; httpTimeout = 60000; iOSHasWarnedLocationServicesOff = 0; isFirstBoot = 0; isMoving = 1; lastLocationAuthorizationStatus = 4; locationAuthorizationAlert = { cancelButton = Cancel; instructions = "To use background location, you must enable '{locationAuthorizationRequest}' in the Location Services settings"; settingsButton = Settings; titleWhenNotEnabled = "Background location is not enabled"; titleWhenOff = "Location services are off"; }; locationAuthorizationRequest = WhenInUse; locationTemplate = ""; locationTimeout = 60; locationsOrderDirection = ASC; logLevel = 5; logMaxDays = 3; maxBatchSize = "-1"; maxDaysToPersist = 1; maxRecordsToPersist = "-1"; method = POST; minimumActivityRecognitionConfidence = 70; odometer = "121.8000863488441"; params = { }; pausesLocationUpdatesAutomatically = 0; persistMode = 2; preventSuspend = 0; schedule = ( ); schedulerEnabled = 0; showsBackgroundLocationIndicator = 0; startOnBoot = 0; stationaryRadius = 25; stopAfterElapsedMinutes = "-1"; stopDetectionDelay = 0; stopOnStationary = 0; stopOnTerminate = 1; stopTimeout = 60; trackingMode = 1; url = ""; useSignificantChangesOnly = 0; } 2022-02-03 12:58:34.762 ℹ️-[TSLocationManager init] ╔═════════════════════════════════════════════ ║ TSLocationManager (build 382) ╠══════════════════════════════════════════════ { activityRecognitionInterval = 10000; activityType = 1; authorization = { }; autoSync = 1; autoSyncThreshold = 0; batchSync = 0; debug = 0; desiredAccuracy = "-2"; desiredOdometerAccuracy = 100; didDeviceReboot = 0; didLaunchInBackground = 0; didRequestUpgradeLocationAuthorization = 0; disableAutoSyncOnCellular = 0; disableElasticity = 0; disableLocationAuthorizationAlert = 0; disableMotionActivityUpdates = 0; disableStopDetection = 1; distanceFilter = 0; elasticityMultiplier = 1; enableTimestampMeta = 0; enabled = 0; extras = { }; geofenceInitialTriggerEntry = 1; geofenceProximityRadius = 2000; geofenceTemplate = ""; headers = { }; heartbeatInterval = 60; httpRootProperty = location; httpTimeout = 60000; iOSHasWarnedLocationServicesOff = 0; isFirstBoot = 0; isMoving = 0; lastLocationAuthorizationStatus = 4; locationAuthorizationAlert = { cancelButton = Cancel; instructions = "To use background location, you must enable '{locationAuthorizationRequest}' in the Location Services settings"; settingsButton = Settings; titleWhenNotEnabled = "Background location is not enabled"; titleWhenOff = "Location services are off"; }; locationAuthorizationRequest = WhenInUse; locationTemplate = ""; locationTimeout = 60; locationsOrderDirection = ASC; logLevel = 5; logMaxDays = 3; maxBatchSize = "-1"; maxDaysToPersist = 1; maxRecordsToPersist = "-1"; method = POST; minimumActivityRecognitionConfidence = 70; odometer = "78.03403402262329"; params = { }; pausesLocationUpdatesAutomatically = 0; persistMode = 2; preventSuspend = 0; schedule = ( ); schedulerEnabled = 0; showsBackgroundLocationIndicator = 0; startOnBoot = 0; stationaryRadius = 25; stopAfterElapsedMinutes = "-1"; stopDetectionDelay = 0; stopOnStationary = 0; stopOnTerminate = 1; stopTimeout = 60; trackingMode = 1; url = ""; useSignificantChangesOnly = 0; } 2022-02-03 12:58:34.765 ℹ️-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT) 2022-02-03 12:58:34.765 ℹ️-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude); 2022-02-03 12:58:34.824 🔵-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 4 2022-02-03 12:58:34.826 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-03 12:58:34.826 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-03 12:58:34.826 🔵-[LocationManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-03 12:58:34.827 🔵-[BackgroundTaskManager locationManager:didChangeAuthorizationStatus:] 4 2022-02-03 12:58:35.066 ℹ️-[TSLocationManager log:message:] [RNBackgroundGeolocation startObserving] 2022-02-03 12:58:35.066 ℹ️-[TSLocationManager on:success:failure:] location 2022-02-03 12:58:35.066 ℹ️-[TSLocationManager on:success:failure:] motionchange 2022-02-03 12:58:35.066 ℹ️-[TSLocationManager on:success:failure:] activitychange 2022-02-03 12:58:35.066 ℹ️-[TSLocationManager on:success:failure:] heartbeat 2022-02-03 12:58:35.066 ℹ️-[TSGeofenceManager onGeofence:] 2022-02-03 12:58:35.066 ℹ️-[TSGeofenceManager onGeofencesChange:] 2022-02-03 12:58:35.066 ℹ️-[TSLocationManager on:success:failure:] http 2022-02-03 12:58:35.066 ℹ️-[TSLocationManager on:success:failure:] providerchange 2022-02-03 12:58:35.066 ℹ️-[TSLocationManager on:success:failure:] schedule 2022-02-03 12:58:35.066 ℹ️-[TSLocationManager on:success:failure:] powersavechange 2022-02-03 12:58:35.066 ℹ️-[TSHttpService onConnectivityChange:] 2022-02-03 12:58:35.066 ℹ️-[TSLocationManager on:success:failure:] enabledchange 2022-02-03 12:58:35.066 ℹ️-[TSHttpService onAuthorization:] 2022-02-03 12:58:35.068 ℹ️-[TSConfig persist] 2022-02-03 12:58:35.070 ℹ️-[TSConfig persist] 2022-02-03 12:58:35.071 🔵-[TSLocationManager ready] 2022-02-03 12:59:06.095 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager start] ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:06.095 ℹ️-[TSLocationManager doStart:] trackingMode: 1 2022-02-03 12:59:06.096 ℹ️-[TSConfig persist] 2022-02-03 12:59:06.098 🎾-[TSGeofenceManager start] 2022-02-03 12:59:06.100 🎾-[SOMotionDetector startDetection] 2022-02-03 12:59:06.101 🔵-[TSLocationManager setPace:] 0 2022-02-03 12:59:06.104 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-03 12:59:06.105 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:06.105 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:06.108 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-03 12:59:06.109 🎾-[TSLocationManager startMonitoringBackgroundFetch] BackgroundFetch: ON 2022-02-03 12:59:06.113 ℹ️-[TSLocationManager startMonitoringBackgroundFetch]_block_invoke Configured BackgroundFetch 2022-02-03 12:59:06.181 ✅-[SOMotionDetector startDetection]_block_invoke Enabled M7 MotionActivity updates 2022-02-03 12:59:06.182 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 03/02/22, 12:59:05 Central European Standard Time 2022-02-03 12:59:06.182 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 0 | df: -1.0m | age: 0.3s ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:06.183 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 03/02/22, 12:59:05 Central European Standard Time 2022-02-03 12:59:06.184 🔵-[TSLocationManager startMonitoringStationaryRegion:radius:] Radius: 25 2022-02-03 12:59:06.185 🔴-[TSLocationManager stopUpdatingLocation] 2022-02-03 12:59:06.186 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 13.6 2022-02-03 12:59:06.186 🎾-[TSLocationManager startMonitoringSignificantLocationChanges] 2022-02-03 12:59:06.186 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:06.186 🔵-[TSLocationManager startMotionTriggerTimer] Motion-trigger timer engaged: Query location-state will trigger in 10 seconds... 2022-02-03 12:59:06.188 ✅-[LocationDAO unlock]_block_invoke UNLOCKED ALL RECORDS 2022-02-03 12:59:06.189 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: E9624503-79BB-4113-8F2C-E7F8860E4608 2022-02-03 12:59:06.189 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:06.189 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:06.340 ℹ️-[TSConfig persist] 2022-02-03 12:59:06.342 🔵-[TSLocationManager changePace:] isMoving: 1 2022-02-03 12:59:06.342 🔵-[TSLocationManager setPace:] 1 2022-02-03 12:59:06.342 ℹ️-[TSLocationManager resetMotionTriggerTimer] 2022-02-03 12:59:06.345 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-03 12:59:06.345 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-03 12:59:06.362 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 03/02/22, 12:59:05 Central European Standard Time 2022-02-03 12:59:06.362 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: -1.0m | age: 0.5s ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:06.363 ✅-[TSLocationManager locationManager:didUpdateLocations:] Acquired motionchange position: <+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 03/02/22, 12:59:05 Central European Standard Time 2022-02-03 12:59:06.363 🎾-[TSLocationManager startUpdatingLocation] Location-services: ON 2022-02-03 12:59:06.364 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 13.6 2022-02-03 12:59:06.365 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 99AF2326-A3AC-43DF-A2F2-7274A91532AC 2022-02-03 12:59:06.365 ℹ️+[LocationAuthorization run:onCancel:] status: 4 2022-02-03 12:59:06.365 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:06.365 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:11.383 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:13.639 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:15.690 🔵-[TSLocationManager onSuspend:] enabled? 1) 2022-02-03 12:59:15.695 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 12:59:19.764 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:21.371 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:23.627 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:30.076 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:33.295 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 12:59:33.939 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:15.779 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:00:34.550 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/66 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:37.131 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:38.734 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:40.023 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:41.635 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:44.863 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:45.179 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:47.112 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:48.724 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:50.334 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:52.266 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:56.780 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:00:57.750 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:00.003 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:00.969 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:02.581 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:02.906 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:04.191 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:05.158 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:09.026 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:09.346 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:11.603 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:11.925 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:12.571 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:12.893 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:14.504 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | on_foot/100 | isMoving: 1 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:16.704 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:01:16.760 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:19.982 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:20.626 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:23.849 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:28.360 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:29.650 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:40.926 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:46.737 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:49.953 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:50.595 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:55.753 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:01:58.976 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:02:17.710 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:03:18.555 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:03:35.703 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-03 13:04:19.483 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:05:20.398 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:06:20.780 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:07:21.784 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:08:22.785 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:08:33.129 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:08:35.763 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-03 13:08:52.464 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:08:54.727 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:08:59.431 📍<+45.64571352,+9.21440747> +/- 21.87m (speed 2.32 mps / course 29.18) @ 03/02/22, 13:08:59 Central European Standard Time 2022-02-03 13:08:59.431 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:08:59.431 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 13.6 2022-02-03 13:08:59.438 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 71E7C441-E0C3-4048-B4AE-7BBBCAC495F0 2022-02-03 13:08:59.438 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:08:59.438 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:00.434 📍<+45.64569819,+9.21441111> +/- 21.07m (speed 1.74 mps / course 37.62) @ 03/02/22, 13:09:00 Central European Standard Time 2022-02-03 13:09:00.434 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:00.435 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 17.8 2022-02-03 13:09:00.437 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 37FAABAF-9A4D-4624-9756-B684CC85A830 2022-02-03 13:09:00.438 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:00.438 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:01.426 📍<+45.64572405,+9.21441072> +/- 20.37m (speed 1.74 mps / course 13.01) @ 03/02/22, 13:09:01 Central European Standard Time 2022-02-03 13:09:01.427 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:01.427 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 20.4 2022-02-03 13:09:01.433 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: CFC488EB-4E5C-4AD7-868E-ADE61C11F343 2022-02-03 13:09:01.433 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:01.434 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:02.135 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:02.433 📍<+45.64570880,+9.21440570> +/- 25.57m (speed 0.00 mps / course 13.01) @ 03/02/22, 13:09:02 Central European Standard Time 2022-02-03 13:09:02.433 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:02.433 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 21.1 2022-02-03 13:09:02.436 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: CE38645B-119D-4740-A451-4F833D5F7DC8 2022-02-03 13:09:02.437 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:02.437 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:03.425 📍<+45.64570880,+9.21440570> +/- 25.22m (speed 0.00 mps / course 13.01) @ 03/02/22, 13:09:03 Central European Standard Time 2022-02-03 13:09:03.426 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:03.426 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 21.9 2022-02-03 13:09:03.434 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: E11DF638-75B1-4458-B6E2-5843DF78D288 2022-02-03 13:09:03.434 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:03.434 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:04.433 📍<+45.64563177,+9.21433583> +/- 24.62m (speed 2.71 mps / course 52.38) @ 03/02/22, 13:09:04 Central European Standard Time 2022-02-03 13:09:04.433 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:04.433 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 21.5 2022-02-03 13:09:04.441 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 92B4C5D1-283B-4F32-BC62-EDAA1944A718 2022-02-03 13:09:04.442 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:04.442 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:05.432 📍<+45.64562711,+9.21433101> +/- 29.91m (speed 0.54 mps / course -1.00) @ 03/02/22, 13:09:05 Central European Standard Time 2022-02-03 13:09:05.432 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:05.432 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 21.1 2022-02-03 13:09:05.441 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 6C835320-8702-4537-BDAE-8C0926048485 2022-02-03 13:09:05.441 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:05.441 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:06.433 📍<+45.64564794,+9.21440492> +/- 25.15m (speed 0.74 mps / course 52.38) @ 03/02/22, 13:09:06 Central European Standard Time 2022-02-03 13:09:06.433 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:06.433 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 22.8 2022-02-03 13:09:06.442 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 61488B3D-8542-4805-92E4-AE0ED68CCB6D 2022-02-03 13:09:06.442 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:06.442 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:07.291 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:07.434 📍<+45.64564388,+9.21439740> +/- 26.41m (speed 0.00 mps / course 52.38) @ 03/02/22, 13:09:07 Central European Standard Time 2022-02-03 13:09:07.434 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:07.434 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 24.6 2022-02-03 13:09:07.442 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 66CD5F7A-6533-4E50-908D-BD71C938B0CD 2022-02-03 13:09:07.443 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:07.443 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:08.435 📍<+45.64564388,+9.21439740> +/- 25.26m (speed 0.00 mps / course 52.38) @ 03/02/22, 13:09:08 Central European Standard Time 2022-02-03 13:09:08.435 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:08.435 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 25.6 2022-02-03 13:09:08.444 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 94CE9569-6D90-4AF9-8EFD-AEF3B9708B10 2022-02-03 13:09:08.445 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:08.445 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:11.481 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:12.434 📍<+45.64550271,+9.21465660> +/- 15.10m (speed 0.00 mps / course -1.00) @ 03/02/22, 13:09:12 Central European Standard Time 2022-02-03 13:09:12.434 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.4s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:12.434 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 25.6 2022-02-03 13:09:12.435 ℹ️-[TSConfig persist] 2022-02-03 13:09:12.439 🔵-[TSConfig incrementOdometer:] 99.6 2022-02-03 13:09:12.447 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 88F9909C-43D8-4838-805B-87487A6FB105 2022-02-03 13:09:12.447 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:12.447 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:12.775 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:13.033 📍<+45.64550271,+9.21465660> +/- 15.07m (speed 0.00 mps / course -1.00) @ 03/02/22, 13:09:13 Central European Standard Time 2022-02-03 13:09:13.033 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:13.034 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 25.6 2022-02-03 13:09:13.042 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 526D53BB-528A-44B5-990B-63CC5E540423 2022-02-03 13:09:13.042 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:13.042 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:15.040 📍<+45.64550271,+9.21465660> +/- 14.73m (speed 0.00 mps / course -1.00) @ 03/02/22, 13:09:15 Central European Standard Time 2022-02-03 13:09:15.041 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:15.041 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 25.6 2022-02-03 13:09:15.050 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 559861C2-BFAA-43E1-B52B-084E35472308 2022-02-03 13:09:15.050 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:15.050 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:16.033 📍<+45.64557826,+9.21463149> +/- 12.32m (speed 0.09 mps / course -1.00) @ 03/02/22, 13:09:16 Central European Standard Time 2022-02-03 13:09:16.034 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:16.034 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 25.6 2022-02-03 13:09:16.041 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: A835DC63-054A-4E06-A544-09CD9F155ABC 2022-02-03 13:09:16.041 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:16.042 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:17.039 📍<+45.64558290,+9.21462223> +/- 12.27m (speed 0.16 mps / course -1.00) @ 03/02/22, 13:09:17 Central European Standard Time 2022-02-03 13:09:17.039 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:17.039 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 24.6 2022-02-03 13:09:17.044 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 1320E7DD-484C-4504-94C5-7B4C9C3D03AE 2022-02-03 13:09:17.044 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:17.044 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:17.606 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:18.038 📍<+45.64559225,+9.21460866> +/- 12.74m (speed 0.07 mps / course -1.00) @ 03/02/22, 13:09:18 Central European Standard Time 2022-02-03 13:09:18.038 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:18.039 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 15.1 2022-02-03 13:09:18.045 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: B09CE342-3257-4263-AB64-C5ABD9417F00 2022-02-03 13:09:18.046 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:18.047 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:19.037 📍<+45.64559225,+9.21460866> +/- 10.82m (speed 0.00 mps / course -1.00) @ 03/02/22, 13:09:19 Central European Standard Time 2022-02-03 13:09:19.038 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:19.038 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 15.1 2022-02-03 13:09:19.047 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 607630C9-5981-4732-AD32-B605262D5E4F 2022-02-03 13:09:19.047 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:19.047 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:20.037 📍<+45.64558494,+9.21460843> +/- 10.82m (speed 0.02 mps / course -1.00) @ 03/02/22, 13:09:20 Central European Standard Time 2022-02-03 13:09:20.037 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:20.037 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 14.7 2022-02-03 13:09:20.045 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 6369DDD4-0D6D-4B9D-B1A2-112890E915EC 2022-02-03 13:09:20.046 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:20.046 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:21.037 📍<+45.64559096,+9.21458832> +/- 10.64m (speed 0.02 mps / course -1.00) @ 03/02/22, 13:09:21 Central European Standard Time 2022-02-03 13:09:21.038 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:21.038 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 12.7 2022-02-03 13:09:21.043 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: AB39A929-8D89-4D5B-9283-412C63962E3D 2022-02-03 13:09:21.044 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:21.044 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:22.030 📍<+45.64560533,+9.21457514> +/- 10.92m (speed 0.09 mps / course -1.00) @ 03/02/22, 13:09:22 Central European Standard Time 2022-02-03 13:09:22.030 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:22.030 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 12.3 2022-02-03 13:09:22.030 ℹ️-[TSConfig persist] 2022-02-03 13:09:22.031 🔵-[TSConfig incrementOdometer:] 112.7 2022-02-03 13:09:22.034 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 85B23F0F-0E36-439F-9A8D-31CCF3897B12 2022-02-03 13:09:22.034 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:22.034 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:22.116 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:23.029 📍<+45.64560533,+9.21457511> +/- 10.54m (speed 0.00 mps / course -1.00) @ 03/02/22, 13:09:23 Central European Standard Time 2022-02-03 13:09:23.029 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:23.029 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 12.3 2022-02-03 13:09:23.037 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 27BDB703-55A2-461C-9DE0-A55A60469034 2022-02-03 13:09:23.037 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:23.037 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:23.793 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:09:24.037 📍<+45.64560533,+9.21457511> +/- 10.53m (speed 0.00 mps / course -1.00) @ 03/02/22, 13:09:24 Central European Standard Time 2022-02-03 13:09:24.038 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:24.038 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.5 2022-02-03 13:09:24.046 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 4575E1C9-6384-4CDE-B3CD-1A6F1443078D 2022-02-03 13:09:24.046 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:24.046 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:25.036 📍<+45.64560069,+9.21455693> +/- 10.78m (speed 0.05 mps / course -1.00) @ 03/02/22, 13:09:25 Central European Standard Time 2022-02-03 13:09:25.037 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:25.037 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.5 2022-02-03 13:09:25.045 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 244DA820-9212-44D0-B3A8-E0310FEEFED4 2022-02-03 13:09:25.045 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:25.045 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:26.035 📍<+45.64559621,+9.21454899> +/- 11.16m (speed 0.08 mps / course -1.00) @ 03/02/22, 13:09:26 Central European Standard Time 2022-02-03 13:09:26.036 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:26.036 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.5 2022-02-03 13:09:26.043 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: C46F7001-424A-45CB-B555-87B1B5984842 2022-02-03 13:09:26.043 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:26.043 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:27.037 📍<+45.64559601,+9.21454987> +/- 12.51m (speed 0.09 mps / course -1.00) @ 03/02/22, 13:09:27 Central European Standard Time 2022-02-03 13:09:27.037 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:27.037 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.5 2022-02-03 13:09:27.046 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 4C414659-1324-405F-85CD-04AEEB123B44 2022-02-03 13:09:27.046 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:27.046 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:28.037 📍<+45.64559582,+9.21455085> +/- 14.85m (speed 0.08 mps / course -1.00) @ 03/02/22, 13:09:28 Central European Standard Time 2022-02-03 13:09:28.037 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:28.037 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.5 2022-02-03 13:09:28.046 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 2BBBAD56-4A2C-41BF-8177-15D5B679A2C3 2022-02-03 13:09:28.046 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:28.046 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:28.240 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:29.036 📍<+45.64559576,+9.21455114> +/- 12.69m (speed 0.00 mps / course -1.00) @ 03/02/22, 13:09:29 Central European Standard Time 2022-02-03 13:09:29.036 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:29.036 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.5 2022-02-03 13:09:29.045 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: DA91F21B-BD67-440F-B157-461BAE207D23 2022-02-03 13:09:29.045 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:29.045 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:29.847 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:33.035 📍<+45.64566622,+9.21438089> +/- 29.59m (speed 0.00 mps / course 328.01) @ 03/02/22, 13:09:33 Central European Standard Time 2022-02-03 13:09:33.035 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:33.036 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.8 2022-02-03 13:09:33.044 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: D68D6C30-D766-42DA-9308-D30245A90DA1 2022-02-03 13:09:33.044 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:33.044 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:33.067 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:33.396 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:33.714 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:34.035 📍<+45.64559576,+9.21455114> +/- 29.59m (speed 0.00 mps / course -1.00) @ 03/02/22, 13:09:34 Central European Standard Time 2022-02-03 13:09:34.036 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:34.036 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 11.2 2022-02-03 13:09:34.044 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 966106F2-3248-495B-9A3B-ED9915423456 2022-02-03 13:09:34.044 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:34.044 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:51.440 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:54.035 📍<+45.64565117,+9.21447806> +/- 13.63m (speed -1.00 mps / course -1.00) @ 03/02/22, 13:09:54 Central European Standard Time 2022-02-03 13:09:54.036 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 0.0m | age: 0.0s ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:54.036 🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 12.5 2022-02-03 13:09:54.044 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 9A6171BE-1C03-41E1-A339-90BF7CAD8528 2022-02-03 13:09:54.044 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService flush:] ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:54.044 ╔═══════════════════════════════════════════════════════════ ║ -[TSHttpService finish:error:] Success: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:54.664 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:09:56.601 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:10:24.583 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:10:43.001 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:10:46.220 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:11:25.586 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:11:32.298 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:11:33.912 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:11:37.141 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:11:39.716 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:11:40.356 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:11:42.296 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:11:45.515 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:11:47.452 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:12:25.783 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:13:26.786 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:13:29.276 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:13:32.497 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:13:35.723 ℹ️-[TSDBLogger db_delete] maxAge: 604800 2022-02-03 13:14:11.165 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:14:14.395 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:14:27.787 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:15:25.606 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:15:28.791 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:15:28.829 ╔═══════════════════════════════════════════════════════════ ║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0 ╚═══════════════════════════════════════════════════════════ 2022-02-03 13:16:29.787 ℹ️-[TSDBLogger db_save] Log committed 2022-02-03 13:20:33.511 ℹ️-[TSDBLogger db_delete] maxAge: 259200 2022-02-03 13:20:33.511 ℹ️-[TSLocationManager init] ╔═════════════════════════════════════════════ ║ TSLocationManager (build 382) ╠══════════════════════════════════════════════ { activityRecognitionInterval = 10000; activityType = 1; authorization = { }; autoSync = 1; autoSyncThreshold = 0; batchSync = 0; debug = 0; desiredAccuracy = "-2"; desiredOdometerAccuracy = 100; didDeviceReboot = 0; didLaunchInBackground = 0; didRequestUpgradeLocationAuthorization = 0; disableAutoSyncOnCellular = 0; disableElasticity = 0; disableLocationAuthorizationAlert = 0; disableMotionActivityUpdates = 0; disableStopDetection = 1; distanceFilter = 0; elasticityMultiplier = 1; enableTimestampMeta = 0; enabled = 1; extras = { }; geofenceInitialTriggerEntry = 1; geofenceProximityRadius = 2000; geofenceTemplate = ""; headers = { }; heartbeatInterval = 60; httpRootProperty = location; httpTimeout = 60000; iOSHasWarnedLocationServicesOff = 0; isFirstBoot = 0; isMoving = 1; lastLocationAuthorizationStatus = 4; locationAuthorizationAlert = { cancelButton = Cancel; instructions = "To use background location, you must enable '{locationAuthorizationRequest}' in the Location Services settings"; settingsButton = Settings; titleWhenNotEnabled = "Background location is not enabled"; titleWhenOff = "Location services are off"; }; locationAuthorizationRequest = WhenInUse; locationTemplate = ""; locationTimeout = 60; locationsOrderDirection = ASC; logLevel = 5; logMaxDays = 3; maxBatchSize = "-1"; maxDaysToPersist = 1; maxRecordsToPersist = "-1"; method = POST; minimumActivityRecognitionConfidence = 70; odometer = "112.6764120587069"; params = { }; pausesLocationUpdatesAutomatically = 0; persistMode = 2; preventSuspend = 0; schedule = ( ); schedulerEnabled = 0; showsBackgroundLocationIndicator = 0; startOnBoot = 0; stationaryRadius = 25; stopAfterElapsedMinutes = "-1"; stopDetectionDelay = 0; stopOnStationary = 0; stopOnTerminate = 1; stopTimeout = 60; trackingMode = 1; url = ""; useSignificantChangesOnly = 0; } 2022-02-03 13:20:33.512 ℹ️-[GeofenceDAO init] CREATE TABLE IF NOT EXISTS geofences (id INTEGER PRIMARY KEY AUTOINCREMENT, identifier TEXT NOT NULL UNIQUE, latitude DOUBLE NOT NULL, sin_latitude DOUBLE NOT NULL, cos_latitude DOUBLE NOT NULL, longitude DOUBLE NOT NULL, sin_longitude DOUBLE NOT NULL, cos_longitude DOUBLE NOT NULL, radius DOUBLE NOT NULL, notifyOnEntry BOOLEAN NOT NULL DEFAULT 0, notifyOnExit BOOLEAN NOT NULL DEFAULT 0, notifyOnDwell BOOLEAN NOT NULL DEFAULT 0, loiteringDelay DOUBLE NOT NULL DEFAULT 0, extras TEXT) 2022-02-03 13:20:33.512 ℹ️-[GeofenceDAO init] CREATE index IF NOT EXISTS identifier ON geofences (identifier);CREATE index IF NOT EXISTS latitude ON geofences (latitude);CREATE index IF NOT EXISTS longitude ON geofences (longitude);CREATE index IF NOT EXISTS sin_latitude ON geofences (sin_latitude);CREATE index IF NOT EXISTS cos_latitude ON geofences (cos_latitude);CREATE index IF NOT EXISTS sin_longitude ON geofences (sin_longitude);CREATE index IF NOT EXISTS cos_longitude ON geofences (cos_longitude); 2022-02-03 13:20:33.516 🔵-[TSLocationManager locationManager:didChangeAuthorizationStatus:] status 4
ironmanromeo commented 2 years ago

Unfortunately, the problem also manifests itself in the BGGeolocation demo app. We installed it and took a walk of about 3 km. During the journey the application was put into sleep by the system 5 times as you can see from this video.

https://vimeo.com/673216473

Unfortunately we don't have the logs to show because we followed the suggested settings and didn't add debug: true. The problem was also found on our app and that you have the log in the previous post.

This is the only modified file in your app: HelloWorldView.tsx

import React from 'react';

import {
  StyleSheet,
  Text,
  View,
  ScrollView,
  SafeAreaView
} from 'react-native';

import {Button, Switch, Icon} from "react-native-elements";

import ENV from "../ENV";
import {COLORS} from "../lib/config";

import BackgroundGeolocation, {Subscription} from "../react-native-background-geolocation";
import {registerTransistorAuthorizationListener} from '../lib/Authorization';

//////
/// A simple implementation of the BackgroundGeolocation plugin.
///
///
const HelloWorldView = ({route, navigation}) => {
  // Keep a list of BackgroundGeolocation event-subscriptions so we can later remove them
  // when the View is destroyed or refreshed during development live-reload.
  const bgGeoEventSubscriptions:Subscription[] = [];

  const {org, username} = route.params;

  /// State.
  const [events, setEvents] = React.useState<any[]>([]);
  const [enabled, setEnabled] = React.useState(false);

  /// Init BackgroundGeolocation when view renders.
  /// Return a function to .removeListeners() When view is removed.
  React.useEffect(() => {
    initBackgroundGeolocation();
    registerTransistorAuthorizationListener(navigation);
    return () => {
      // Remove BackgroundGeolocation event-subscribers when the View is removed or refreshed
      // during development live-reload.  Without this, event-listeners will accumulate with
      // each refresh during live-reload.
      unsubscribe();
    }
  }, []);

  /// Add a toggle <Switch> to top-right toolbar.
  React.useLayoutEffect(() => {
    navigation.setOptions({
      headerRight: () => (
        <Switch onValueChange={onClickEnable} value={enabled} />
      )
    });
  }, [enabled]);

  /// Helper method to push a BackgroundGeolocation subscription onto our list of subscribers.
  const subscribe = (subscription:Subscription) => {
    bgGeoEventSubscriptions.push(subscription);
  }

  /// Helper method to unsubscribe from all registered BackgroundGeolocation event-listeners.
  const unsubscribe = () => {
    bgGeoEventSubscriptions.forEach((subscription:Subscription) => subscription.remove() );
  }

  /// Configure the BackgroundGeolocation plugin.
  const initBackgroundGeolocation = async () => {
    // Listen to events.  Each BackgroundGeolocation event-listener returns a subscription instance
    // with a .remove() method for removing the event-listener.  You should collect a list of these
    // subcribers and .remove() them all when the View is destroyed or refreshed during dev live-reload.
    subscribe(BackgroundGeolocation.onProviderChange((event) => {
      console.log('[onProviderChange]', event);
      addEvent('onProviderChange', event);
    }));

    subscribe(BackgroundGeolocation.onLocation((location) => {
      console.log('[onLocation]', location);
      addEvent('onLocation', location);

    }, (error) => {
      console.warn('[onLocation] ERROR: ', error);
    }));

    subscribe(BackgroundGeolocation.onMotionChange((location) => {
      console.log('[onMotionChange]', location);
      addEvent('onMotionChange', location);
    }));

    subscribe(BackgroundGeolocation.onGeofence((event) => {
      console.log('[onGeofence]', event);
      addEvent('onGeofence', event);
    }));

    subscribe(BackgroundGeolocation.onConnectivityChange((event) => {
      console.log('[onConnectivityChange]', event);
      addEvent('onConnectivityChange', event);
    }));

    subscribe(BackgroundGeolocation.onEnabledChange((enabled) => {
      console.log('[onEnabledChange]', enabled);
      addEvent('onEnabledChange', {enabled: enabled});
    }));

    subscribe(BackgroundGeolocation.onHttp((event) => {
      console.log('[onHttp]', event);
      addEvent('onHttp', event);
    }));

    subscribe(BackgroundGeolocation.onActivityChange((event) => {
      console.log('[onActivityChange]', event);
      addEvent('onActivityChange', event);
    }));

    subscribe(BackgroundGeolocation.onPowerSaveChange((enabled) => {
      console.log('[onPowerSaveChange]', enabled);
      addEvent('onPowerSaveChange', {isPowerSaveMode: enabled});
    }));

    /// Get an authorization token from demo server at tracker.transistorsoft.com
    const token = await BackgroundGeolocation.findOrCreateTransistorAuthorizationToken(org, username, ENV.TRACKER_HOST);

    /// Configure the plugin.
    BackgroundGeolocation.ready({
      debug: false,
      stopTimeout: 60,
      locationAuthorizationRequest: 'WhenInUse',
      distanceFilter: 0,
      pausesLocationUpdatesAutomatically: false,
      disableStopDetection: true
    }).then((state) => {
      BackgroundGeolocation.changePace(true);
      /// Add the current state as first item in list.
      addEvent('Current state', state);
      /// Set the default <Switch> state (disabled)
      setEnabled(state.enabled);
    });

  };

  /// Adds events to List
  const addEvent = (name:string, params:any) => {
    let timestamp = new Date();
    const event = {
      expanded: false,
      timestamp: `${timestamp.getMonth()}-${timestamp.getDate()} ${timestamp.getHours()}:${timestamp.getMinutes()}:${timestamp.getSeconds()}`,
      name: name,
      params: JSON.stringify(params, null, 2)
    }
    setEvents(previous => [...previous, event]);
  }

  /// <Switch> handler to toggle the plugin on/off.
  const onClickEnable = (value:boolean) => {
    (async () => {
      setEnabled(value);
      if (value) {
        await BackgroundGeolocation.start()
        await BackgroundGeolocation.changePace(true)
      } else {
        await BackgroundGeolocation.stop();
      }
    })()
  }

  /// Clear events list.
  const onClickClear = () => {
    setEvents([]);
  }

  /// Execute getCurrentPosition
  const onClickGetCurrentPosition = async () => {
    await BackgroundGeolocation.getCurrentPosition({
      samples: 1,
      extras: {
        getCurrentPosition: true
      }
    });
  }

  return (
    <SafeAreaView style={styles.container}>
      <ScrollView style={styles.events}>
        {events.slice().reverse().map((event, i) => (
          <View style={styles.event} key={i}>
            <View style={styles.header}>
              <Text style={styles.title}>{event.name}</Text>
              <Text style={[styles.title, styles.timestamp]}>{event.timestamp}</Text>
            </View>
            <View key={i}>
              <Text style={styles.params}>{event.params}</Text>
            </View>
          </View>
        ))}
      </ScrollView>

      <View style={styles.bottomToolbar}>
        <View style={{justifyContent:'center'}}>
          <Button
            type="clear"
            onPress={onClickGetCurrentPosition}
            containerStyle={{width: 60}}
            icon={<Icon name='navigate-sharp' type='ionicon' /> }
          />
        </View>
        <View style={{flex: 1}}></View>
        <View style={{justifyContent:'center'}}>
          <Button
            type="clear"
            onPress={onClickClear}
            containerStyle={{width: 60}}
            icon={<Icon name='trash-sharp' type='ionicon' /> }
          />
        </View>
      </View>

    </SafeAreaView>
  );
}

export default HelloWorldView;

const styles = StyleSheet.create({
  container: {
    flexDirection: 'column',
    backgroundColor: COLORS.gold,
    flex: 1
  },
  events: {
    flex: 1,
    //backgroundColor: '#eee'
  },
  event: {
    backgroundColor: '#fff',
    color: '#fff',
    marginBottom: 5,
    borderWidth: 1,
    borderColor: '#000'

  },
  header: {
    backgroundColor: '#000',
    padding: 10,
    flexDirection:'row',
    justifyContent: 'space-between'
  },
  title: {
    flex:1,
    fontWeight: 'bold',
    color: '#fff'
  },
  timestamp: {
    textAlign: 'right',
    fontStyle: 'italic'
  },
  params: {
    fontFamily: 'Courier',
    padding: 5
  },
  bottomToolbar: {
    backgroundColor: COLORS.gold,
    height: 56,
    flexDirection: 'row'
  }
});
christocracy commented 2 years ago

I just took my SampleApp for a walk to the skating rink (about 1km walk), skated for 50 min, then walked home again.

Tracking was completely successful and did not stop at all during the entire trip (~90min).

Screen Shot 2022-02-03 at 1 16 51 PM
diretur commented 2 years ago

Were you using Android or iOS? Because Android is working on our test app, iOS isn't. Romeo installed your sample app on a brand new iphone 13, changing only the file he copied in the post above.

christocracy commented 2 years ago

iOS, of course.

I suggest you create a simple “hello world” app with vanilla react-native (not expo). Publish to a public GitHub repo for me to test.

ironmanromeo commented 2 years ago

Can you do the same test we did please? Use HelloWorldApp.ts without sending the location, just activate the service in the background and keep it running in the background. We are using iPhone 13 PRO and iPhone 13 with iOS 15. We can send the position (live function) but it is not an obligation, it is an option that the user may or may not activate.

The feeling is that you don't want to understand that we have been trying to explain for a month that your plug-in may (may) have a bug and we are helping you to fix it. Instead of continually questioning what we are doing trying to prove that you are not wrong, read our messages carefully and try to reproduce the problem. We tell you in your interest. I remind you that we have been looking for a solution for a month and we can't figure it out. We are aware that we are most likely at fault, but for a moment please try to take our side and try to help us. Right now we don't feel very followed and I personally start to get tired of having to fight with you on every post.

christocracy commented 2 years ago

that your plug-in may (may) have a bug

no it does not. The problem is on your side. Create for me a simple hello world app to test so that we’re both on the same page.

ironmanromeo commented 2 years ago

git@gitlab.com:romeo.mariani/bggeolocation-demo-issue.git https://gitlab.com/romeo.mariani/bggeolocation-demo-issue.git

Please try Hello World App, not Advanced App.

diretur commented 2 years ago

git@gitlab.com:romeo.mariani/bggeolocation-demo-issue.git https://gitlab.com/romeo.mariani/bggeolocation-demo-issue.git

Please try Hello World App, not Advanced App.

@christocracy have you tried it?

diretur commented 2 years ago

I assume your demo app isn't working for you either if you don't use the live tracking on iOS, but it's working on Android without live tracking.

Time for a plugin update I guess.

christocracy commented 2 years ago

I assume your demo app isn't working for you

Incorrect. I launched it this morning and ran it for 60 min on my desk without issue. I’ll be going out for a field test in a few hours.

diretur commented 2 years ago

I assume your demo app isn't working for you

Incorrect. I launched it this morning and ran it for 60 min on my desk without issue. I’ll be going out for a field test in a few hours.

that's what happens to us too: it works if you don't move around. Let's see what happens when you go for a walk.

diretur commented 2 years ago

How did it go? @christocracy

christocracy commented 2 years ago

I have field-tested twice now and reproduced the issue. Stand by while I investigate.

christocracy commented 2 years ago

After extensive field-testing, I'm confident there is no issue with the plugin's native Obj-c code in the core library TSLocationManager.xcframework.

I believe the issue is external to the plugin, either in react-native or in a 3rd-party dependency, perhaps in conjunction with iOS 15, which is known to have issues with geofencing and significant-location-changes API. The issue is very unusual.

This plugin's core library, TSLocationManager.xcframework, is used used verbatim within three other development frameworks where the plugin has been ported: Cordova, Capacitor and Flutter. I took my Flutter demo app out identically configured and it has no issues — whatever the issue is, it's isolated within the React Native ecosystem. I will be testing the Cordova and Capacitor versions soon but I'm confident they'll have no issues.

Here is a functioning counter-example that works consistently for me, based upon a freshly generated RN app with no other dependencies other than background-geolocation and background-fetch. Note: this app is poorly named WhenInUseNoHooks because I initially planned to implement it without RN hooks, but I decided to stick with hooks; eg: React.useEffect, React.useState, etc.)

https://github.com/christocracy/bggeolocation-demo-issue

ironmanromeo commented 2 years ago

To help you I can tell you that this configuration works and is somehow related to the DEBUG command. I know I have set incompatible parameters between them, but somehow it stands, but only if you start from a closed application.

Drawbacks:

  1. after departure 3 or 4 notifications appear before silencing. It does not change with the ERROR configuration instead of VERBOSE
  2. an immediate restart immediately after a stop works, however after a workout, shutdown of the service and background of the app, when you return to the frontend and restart a new service, the tracking fails.
  3. if I start with debug: false it doesn't work.

const MacSettings = {
    desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
    preventSuspend: true,
    heartbeatInterval: 60,
    stopTimeout: 60*10,
    locationAuthorizationRequest: 'WhenInUse',
    debug: true,
    logLevel: BackgroundGeolocation.LOG_LEVEL_ERROR,
    //transistorAuthorizationToken: token,
    distanceFilter: 10,
    isMoving:true,
    pausesLocationUpdatesAutomatically:false,
    disableStopDetection:true
}

...

 const onClickEnable = (value) => {

        (async () => {
            setEnabled(value);
            if (value) {
                await BackgroundGeolocation.start()
                await BackgroundGeolocation.changePace(true)
                await BackgroundGeolocation.setConfig({
                    debug:false
                })
            } else {
                await BackgroundGeolocation.stop();
                await BackgroundGeolocation.setConfig({
                    debug:true
                })
            }
        })()

    }

``

I hope it will help.

Tomorrow we try the new bggeolocation-demo-issue app.
christocracy commented 2 years ago

preventSuspend: true,

Once again, do not use preventSuspend. It does not work with WhenInUse. preventSuspend mode is engaged only when the device is in the stationary-state (changePace(false)). The prevent-suspend system is not engaged while the plugin in the moving state (changePace(true)).

Your use-case does not involve preventSuspend since you are immediately calling changePace(true) after .start().

christocracy commented 2 years ago

The purpose of preventSuspend is to allow an app running in the background with the plugin in the stationary state (ie: where location-services are off) to remain alive in the background while monitoring the Motion API for movement. When movement is detected, the plugin can automatically call changePace(true) upon itself to automatically engage location tracking rather than waiting for the usual 200 meters of movement for the stationary geofence exit to fire.

ironmanromeo commented 2 years ago

I'm trying, but I think I've done it before:

const MacSettings = {
     desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
     // preventSuspend: true,
     heartbeatInterval: 60,
     stopTimeout: 60 * 10,
     locationAuthorizationRequest: 'WhenInUse',
     debug: false,
     logLevel: BackgroundGeolocation.LOG_LEVEL_ERROR,
     // transistorAuthorizationToken: token,
     distanceFilter: 10,
     isMoving: true,
     pausesLocationUpdatesAutomatically: false,
     disableStopDetection: true
}
christocracy commented 2 years ago

I took my Capacitor demo app out today for a 40 min walk. No issues.

diretur commented 2 years ago

I took my Capacitor demo app out today for a 40 min walk. No issues.

did you change anything on the plugin side?

christocracy commented 2 years ago

No. I gave it the identical Config as you did in your -demo GitHub repo.

ironmanromeo commented 2 years ago

Try this: put the app in the background with service off, leave it like that for a while until the system terminates it. When you bring it back to the foreground you see the splash (the app was not closed by me but by the system) and you start the service, after a few minutes it disconnects. Same thing when the app is put into suspended state (so no initial splash). Totally change from a departure from an app closed by me and from an app terminated or suspended from the system.

Summing up:

  1. app closed, I open the app, launch the service, no problem
  2. I carry over to the foreground, I turn off the service (except, I do things), I start again immediately, no problem
  3. I carry over to the foreground, I turn off the service, I put the app in the background, I do things with other apps, I put the app back in the foreground (after a while), I start the service does not work, the app comes out no longer track (the symbol goes out blue top left).
christocracy commented 2 years ago

Can you try that with the counter example I posted?

ironmanromeo commented 2 years ago

During our lunch break, let's try your example in the field.

As a clue I can tell you (but we are not 100% sure, we would need a proof that we do pause) that the "debug" command somehow affects the plug-in. From some tests made previously with debug turned off the blue symbol disappeared after a while, with debug turned on (and subsequently turned off by code) it held.

ironmanromeo commented 2 years ago

Update: the walking tour gave a positive result, that is, it never showed the problems encountered with the other demo app. But the configuration here is different than in the app:

rn-background-geolocation-demo

    BackgroundGeolocation.ready ({
      debug: false,
      stopTimeout: 60,
      locationAuthorizationRequest: 'WhenInUse',
      distanceFilter: 0,
      pausesLocationUpdatesAutomatically: false,
      disableStopDetection: true
    }). then ((state) => {
      BackgroundGeolocation.changePace (true);
      /// Add the current state as first item in list.
      addEvent ('Current state', state);
      /// Set the default <Switch> state (disabled)
      setEnabled (state.enabled);
    });

  const onClickEnable = (value: boolean) => {
    (async () => {
      setEnabled (value);
      if (value) {
        await BackgroundGeolocation.start ()
        await BackgroundGeolocation.changePace (true)
      } else {
        await BackgroundGeolocation.stop ();
      }
    }) ()
  }

bggeolocation-demo-issue-master

    BackgroundGeolocation.ready ({
      debug: false,
      logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
      stopTimeout: 60,
      locationAuthorizationRequest: 'WhenInUse',
      distanceFilter: 0,
      pausesLocationUpdatesAutomatically: false,
      disableStopDetection: true
    }). then ((state) => {
      console.log ('- state:', state);

      setEnabled (state.enabled);
      setIsMoving (state.isMoving);
    });

  const onToggleEnabled = async () => {
    const isEnabled =! enabled;

    if (isEnabled) {
      await BackgroundGeolocation.start ();
      await BackgroundGeolocation.changePace (true);
      setIsMoving (true);
    } else {
      BackgroundGeolocation.stop ();
      setIsMoving (false);
    }

    setEnabled (isEnabled);
  }

What does not occur is the suspension of the app from the system, and therefore we are unable to reproduce what remains the last obstacle to publish the app.

That is: if you restart the app from an app already open but previously put to sleep or terminated by the system, it does not work.

With this version (perhaps because it is very light) we have not been able to make the system put it in sleep or terminate it (obviously when it is not tracing).