3.0.5 -> 3.0.7 providerchange events not triggered in headless mode
Your Environment
- Plugin version: 3.0.7
- Platform: Android
- OS version: 7.0
- Device manufacturer / model: Huawei
- React Native version (
react-native -v): 0.59.9 - Plugin config
reset: true,
// Geolocation Config
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
geofenceProximityRadius: 100000,
useSignificantChangesOnly: true,
debug: false, // <-- enable this hear sounds for background-geolocation life-cycle.
logLevel: BackgroundGeolocation.LOG_LEVEL_DEBUG,
stopOnTerminate: false, // <-- Allow the background-service to continue tracking when user closes the app.
startOnBoot: true, // <-- Auto start tracking when device is powered-up.
enableHeadless: true,
Expected Behavior
OnProviderChange should be called in headless mode
Actual Behavior
OnProviderChange should is not called in headless mode
Steps to Reproduce
- Register headless task
- Log every call
Context
I actually do not need this to work, however I noticed it and think it ay be a bug, so I still wanted to report it.
In version 3.0.5 everything works as expected! When I upgrade to 3.0.7 the headless task is called for "terminate", "location" and "geofence" events, however not for "providerchange". It is called when the headless mode is started once, but after that, when I toggle the location on my phone it is not called. The plugin does register the change in the log, just does not call the headlesstask. I guess this has something to do with the new LocationSettingsRequest that also listens for providerchanges? The message is shown everytime when I disable the location on my phone, but it doesn't matter what I choose, the headless task is not called.
In the log I enabled/disabled the location on my device multiple times. I log something like "headlessTaskCalled, event" everytime the headlesstask is called.
Debug logs
Logs
PASTE_YOUR_LOGS_HERE
╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════
07-04 10:27:56.931 INFO [TSConfig print]
╔═════════════════════════════════════════════
║ TSLocationManager version: 3.0.21 (321)
╠═════════════════════════════════════════════
{
"activityRecognitionInterval": 10000,
"allowIdenticalLocations": false,
"autoSync": true,
"autoSyncThreshold": 0,
"batchSync": false,
"debug": false,
"deferTime": 0,
"desiredAccuracy": -1,
"desiredOdometerAccuracy": 100,
"disableElasticity": false,
"disableLocationAuthorizationAlert": false,
"disableStopDetection": false,
"distanceFilter": 10,
"elasticityMultiplier": 1,
"enableHeadless": true,
"enableTimestampMeta": false,
"extras": {},
"fastestLocationUpdateInterval": -1,
"forceReloadOnBoot": false,
"forceReloadOnGeofence": false,
"forceReloadOnHeartbeat": false,
"forceReloadOnLocationChange": false,
"forceReloadOnMotionChange": false,
"forceReloadOnSchedule": false,
"foregroundService": true,
"geofenceInitialTriggerEntry": true,
"geofenceModeHighAccuracy": false,
"geofenceProximityRadius": 100000,
"geofenceTemplate": "",
"headers": {},
"headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask",
"heartbeatInterval": -1,
"httpRootProperty": "location",
"httpTimeout": 60000,
"isMoving": false,
"locationTemplate": "",
"locationTimeout": 60,
"locationUpdateInterval": 1000,
"locationsOrderDirection": "ASC",
"logLevel": 4,
"logMaxDays": 3,
"maxBatchSize": -1,
"maxDaysToPersist": 1,
"maxRecordsToPersist": -1,
"method": "POST",
"minimumActivityRecognitionConfidence": 75,
"notification": {
"layout": "",
"title": "",
"text": "Location Service activated",
"color": "",
"channelName": "TSLocationManager",
"smallIcon": "",
"largeIcon": "",
"priority": 0,
"strings": {},
"actions": []
},
"params": {},
"persist": true,
"persistMode": 2,
"schedule": [],
"scheduleUseAlarmManager": false,
"speedJumpFilter": 300,
"startOnBoot": true,
"stationaryRadius": 25,
"stopAfterElapsedMinutes": 0,
"stopOnStationary": false,
"stopOnTerminate": false,
"stopTimeout": 5,
"triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
"url": "",
"useSignificantChangesOnly": true,
"enabled": true,
"schedulerEnabled": false,
"trackingMode": 1,
"odometer": 0,
"isFirstBoot": false
}
╔═════════════════════════════════════════════
║ DEVICE SENSORS
╠═════════════════════════════════════════════
╟─ ✅ ACCELEROMETER: {Sensor name="accelerometer", vendor="st", version=1, type=1, maxRange=78.4532, resolution=0.009576807, power=0.23, minDelay=10000}
╟─ ✅ GYROSCOPE: {Sensor name="gyroscope-lsm6ds3", vendor="st", version=1, type=4, maxRange=34.906586, resolution=1.7453292E-5, power=6.1, minDelay=10000}
╟─ ✅ MAGNETOMETER: {Sensor name="mag-akm09911", 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}
╚═════════════════════════════════════════════
07-04 10:27:56.945 INFO [BackgroundGeolocation
07-04 10:27:56.981 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:27:56.991 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:27:56.994 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: providerchange 07-04 10:27:57.097 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:27:57.116 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: terminate 07-04 10:27:57.135 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 1 07-04 10:27:57.195 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:27:57.220 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: connectivitychange 07-04 10:27:57.225 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 2 07-04 10:27:57.740 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 3 07-04 10:27:57.864 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"useSignificantChangesOnly":true,"triggerActivities":"in_vehicle, on_bicycle, on_foot, running, walking","schedule":[],"logLevel":4,"locationTimeout":60,"forceReloadOnSchedule":false,"forceReloadOnGeofence":false,"desiredOdometerAccuracy":100,"desiredAccuracy":-1,"activityRecognitionInterval":10000,"schedulerEnabled":false,"enabled":true,"stopTimeout":5,"startOnBoot":true,"params":{},"locationsOrderDirection":"ASC","enableTimestampMeta":false,"elasticityMultiplier":1,"deferTime":0,"batchSync":false,"stopOnTerminate":false,"stopAfterElapsedMinutes":0,"geofenceProximityRadius":100000,"forceReloadOnMotionChange":false,"enableHeadless":true,"allowIdenticalLocations":false,"maxDaysToPersist":1,"geofenceTemplate":"","geofenceModeHighAccuracy":false,"geofenceInitialTriggerEntry":true,"forceReloadOnLocationChange":false,"forceReloadOnBoot":false,"disableStopDetection":false,"url":"","stationaryRadius":25,"scheduleUseAlarmManager":false,"persistMode":2,"persist":true,"minimumActivityRecognitionConfidence":75,"maxRecordsToPersist":-1,"isMoving":false,"httpRootProperty":"location","disableElasticity":false,"debug":false,"isFirstBoot":false,"trackingMode":1,"stopOnStationary":false,"notification":{"actions":[],"strings":{},"priority":0,"largeIcon":"","smallIcon":"","channelName":"TSLocationManager","color":"","text":"Location Service activated","title":"","layout":""},"method":"POST","locationUpdateInterval":1000,"locationTemplate":"","heartbeatInterval":-1,"fastestLocationUpdateInterval":-1,"odometer":0,"speedJumpFilter":300,"maxBatchSize":-1,"logMaxDays":3,"httpTimeout":60000,"autoSyncThreshold":0,"autoSync":true,"headlessJobService":"com.transistorsoft.rnbackgroundgeolocation.HeadlessTask","headers":{},"foregroundService":true,"forceReloadOnHeartbeat":false,"extras":{},"distanceFilter":10,"disableLocationAuthorizationAlert":false},"name":"terminate"} 07-04 10:27:57.877 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"connected":true},"name":"connectivitychange"} 07-04 10:27:57.880 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 1 07-04 10:27:57.885 INFO [TSLog log] ℹ️ , "Notification triggered" 07-04 10:27:57.887 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 2 07-04 10:27:57.967 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"status":3,"enabled":true,"gps":true,"network":true},"name":"providerchange"} 07-04 10:27:57.975 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 3 07-04 10:28:01.294 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:01.307 ERROR [TSLocationManager getLastLocation] ‼️ Failed to get last location: com.google.android.gms.tasks.zzu@8ca6a3 07-04 10:28:01.335 INFO [BackgroundGeolocation$h onReceive] ╔═════════════════════════════════════════════ ║ Location-provider change: false ╠═════════════════════════════════════════════ ╟─ GPS: false ╟─ Network: false
07-04 10:28:01.350 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [] 07-04 10:28:01.369 WARN [GeofencingService a] ⚠️ Geofencing error: 1000 07-04 10:28:01.375 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [] 07-04 10:28:01.400 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-04 10:28:01.461 DEBUG [TSLocationManagerActivity$1 onComplete] ℹ️ Location Settings Resolution: START 07-04 10:28:01.632 DEBUG [GeofencingService onDestroy] 🔴 GeofencingService destroyed 07-04 10:28:05.427 DEBUG [b a] ℹ️ LocationAuthorization: Permission granted 07-04 10:28:05.480 INFO [TSGeofenceManager stopMonitoringSignificantLocationChanges] 🔴 Stop monitoring significant location changes 07-04 10:28:05.492 INFO [HeartbeatService a] 🔴 Stop heartbeat 07-04 10:28:05.542 DEBUG [b a] ℹ️ LocationAuthorization: Permission granted 07-04 10:28:05.557 INFO [TrackingService a] 🔵 setPace: false → false 07-04 10:28:05.602 INFO [BackgroundGeolocation$h onReceive] ╔═════════════════════════════════════════════ ║ Location-provider change: true ╠═════════════════════════════════════════════ ╟─ GPS: true ╟─ Network: true
07-04 10:28:05.651 DEBUG [TSLocationManagerActivity onActivityResult] ✅ Location settings resolution: ACCEPTED 07-04 10:28:05.856 INFO [LocationRequestService b] ℹ️ Location availability: true 07-04 10:28:05.869 INFO [LocationRequestService b] ℹ️ Location availability: true 07-04 10:28:07.236 INFO [LocationRequestService a] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 2 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 52******,13****** acc=22 et=+11h51m58s119ms alt=94.19999694824219], age: 202ms, time: 1562228887032
07-04 10:28:07.243 INFO [TSGeofenceManager start] 🎾 Start monitoring geofences 07-04 10:28:07.263 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: false 07-04 10:28:07.273 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 22.397 07-04 10:28:07.308 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:07.312 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 07-04 10:28:07.318 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 4 07-04 10:28:07.328 INFO [TSLog log] ℹ️ , "onLocation:", {"altitude":94.2,"heading":-1,"speed":-1,"accuracy":22.4,"longitude":13.3612571,"latitude":52.4846187} 07-04 10:28:07.331 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:07.341 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"extras":{},"battery":{"level":1,"is_charging":true},"activity":{"confidence":100,"type":"still"},"coords":{"altitude":94.2,"heading":-1,"speed":-1,"accuracy":22.4,"longitude":13.3612571,"latitude":52.4846187},"odometer":0,"timestamp":"2019-07-04T08:28:07.032Z","uuid":"75391ba8-7feb-4411-af65-71c47d973752","is_moving":false,"event":"motionchange"},"name":"location"} 07-04 10:28:07.342 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: motionchange 07-04 10:28:07.345 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 5 07-04 10:28:07.354 INFO [b persist] ✅ INSERT: 75391ba8-7feb-4411-af65-71c47d973752 07-04 10:28:07.361 INFO [LocationRequestService a] ╔═════════════════════════════════════════════ ║ providerchange LocationResult: 1 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 52******,13****** acc=22 et=+11h51m58s119ms alt=94.19999694824219], age: 329ms, time: 1562228887032
07-04 10:28:07.377 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired providerchange position 07-04 10:28:07.378 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"isMoving":false,"location":{"extras":{},"battery":{"level":1,"is_charging":true},"activity":{"confidence":100,"type":"still"},"coords":{"altitude":94.2,"heading":-1,"speed":-1,"accuracy":22.4,"longitude":13.3612571,"latitude":52.4846187},"odometer":0,"timestamp":"2019-07-04T08:28:07.032Z","uuid":"75391ba8-7feb-4411-af65-71c47d973752","is_moving":false,"event":"motionchange"}},"name":"motionchange"} 07-04 10:28:07.381 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 22.397 07-04 10:28:07.421 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:07.435 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 07-04 10:28:07.447 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 6 07-04 10:28:07.452 INFO [TSLog log] ℹ️ , "onLocation:", {"altitude":94.2,"heading":-1,"speed":-1,"accuracy":22.4,"longitude":13.3612571,"latitude":52.4846187} 07-04 10:28:07.462 INFO [b persist] ✅ INSERT: 450a6985-e2e1-4591-b189-0de5dd979579 07-04 10:28:07.466 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"extras":{},"battery":{"level":1,"is_charging":true},"activity":{"confidence":100,"type":"still"},"coords":{"altitude":94.2,"heading":-1,"speed":-1,"accuracy":22.4,"longitude":13.3612571,"latitude":52.4846187},"odometer":0,"timestamp":"2019-07-04T08:28:07.032Z","uuid":"450a6985-e2e1-4591-b189-0de5dd979579","is_moving":false,"provider":{"status":3,"enabled":true,"gps":true,"network":true},"event":"providerchange"},"name":"location"} 07-04 10:28:07.470 DEBUG [TSGeofenceManager$2 a] ℹ️ GeofencingClient addGeofences 07-04 10:28:07.480 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [Home] 07-04 10:28:07.482 DEBUG [TSGeofenceManager$2 a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager found 1/1 within 100000 meters ╠═════════════════════════════════════════════ ╟─ 🎾 Home ╚═════════════════════════════════════════════ 07-04 10:28:07.492 INFO [GeofencingService a] ╔═════════════════════════════════════════════ ║ Geofencing Event: ENTER ╠═════════════════════════════════════════════ ╟─ Home ╚═════════════════════════════════════════════ 07-04 10:28:07.499 DEBUG [TSGeofenceManager setLocation] *** isMoving: false | stateChanged: false | timerExpired: false | elapsed: 0 07-04 10:28:07.503 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:07.505 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 07-04 10:28:07.508 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 7 07-04 10:28:07.515 INFO [TSLog log] ℹ️ , "onLocation:", {"altitude":94.2,"heading":-1,"speed":-1,"accuracy":22.4,"longitude":13.3612571,"latitude":52.4846187} 07-04 10:28:07.521 INFO [b persist] ✅ INSERT: 588c77cc-0f1e-4dc9-82ab-b744855685b3 07-04 10:28:07.526 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"extras":{},"battery":{"level":1,"is_charging":true},"activity":{"confidence":100,"type":"still"},"coords":{"altitude":94.2,"heading":-1,"speed":-1,"accuracy":22.4,"longitude":13.3612571,"latitude":52.4846187},"odometer":0,"timestamp":"2019-07-04T08:28:07.032Z","uuid":"5aa9669f-4cdf-4cfe-afdc-af20e99772d4","is_moving":false},"name":"location"} 07-04 10:28:07.543 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:07.547 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: geofence 07-04 10:28:07.547 DEBUG [b destroyAll] ✅ DELETED: (6) 07-04 10:28:07.562 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 8 07-04 10:28:07.568 INFO [TSLog log] ℹ️ , "Location.onGeofence:", "ENTER" 07-04 10:28:07.568 INFO [ActivityRecognitionService a] 🎾 Start motion-activity updates 07-04 10:28:07.573 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"action":"ENTER","identifier":"Home","location":{"extras":{},"geofence":{"action":"ENTER","identifier":"Home"},"battery":{"level":1,"is_charging":true},"activity":{"confidence":100,"type":"still"},"coords":{"altitude":94.2,"heading":-1,"speed":-1,"accuracy":22.4,"longitude":13.3612571,"latitude":52.4846187},"odometer":0,"timestamp":"2019-07-04T08:28:07.032Z","uuid":"588c77cc-0f1e-4dc9-82ab-b744855685b3","is_moving":false,"event":"geofence"}},"name":"geofence"} 07-04 10:28:07.588 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 🎾 Start monitoring stationary region (radius: 150.0 meters) 07-04 10:28:07.604 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 4 07-04 10:28:07.623 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 5 07-04 10:28:07.640 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 6 07-04 10:28:07.643 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 7 07-04 10:28:07.647 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 8 07-04 10:28:07.660 DEBUG [ActivityRecognitionService a] 🚘 ️DetectedActivity [type=STILL, confidence=100] 07-04 10:28:07.678 DEBUG [ActivityRecognitionService onDestroy] 🔴 ActivityRecognitionService destroyed 07-04 10:28:07.819 DEBUG [GeofencingService onDestroy] 🔴 GeofencingService destroyed 07-04 10:28:08.819 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:08.841 DEBUG [TSGeofenceManager setLocation] *** isMoving: false | stateChanged: false | timerExpired: false | elapsed: 0 07-04 10:28:08.867 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired providerchange position 07-04 10:28:08.880 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 22.397 07-04 10:28:08.907 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:08.923 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 07-04 10:28:08.936 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 9 07-04 10:28:08.943 INFO [TSLog log] ℹ️ , "onLocation:", {"altitude":94.2,"heading":-1,"speed":-1,"accuracy":22.4,"longitude":13.3612571,"latitude":52.4846187} 07-04 10:28:08.952 INFO [b persist] ✅ INSERT: 32dfec6f-6a06-47fe-b9fc-27e156acc0bb 07-04 10:28:08.961 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"extras":{},"battery":{"level":1,"is_charging":true},"activity":{"confidence":100,"type":"still"},"coords":{"altitude":94.2,"heading":-1,"speed":-1,"accuracy":22.4,"longitude":13.3612571,"latitude":52.4846187},"odometer":0,"timestamp":"2019-07-04T08:28:07.032Z","uuid":"32dfec6f-6a06-47fe-b9fc-27e156acc0bb","is_moving":false,"provider":{"status":3,"enabled":false,"gps":false,"network":false},"event":"providerchange"},"name":"location"} 07-04 10:28:08.977 INFO [BackgroundGeolocation$h onReceive] ╔═════════════════════════════════════════════ ║ Location-provider change: false ╠═════════════════════════════════════════════ ╟─ GPS: false ╟─ Network: false
07-04 10:28:09.003 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [] 07-04 10:28:09.029 WARN [GeofencingService a] ⚠️ Geofencing error: 1000 07-04 10:28:09.033 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [] 07-04 10:28:09.043 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 9 07-04 10:28:09.050 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-04 10:28:09.075 DEBUG [TSLocationManagerActivity$1 onComplete] ℹ️ Location Settings Resolution: START 07-04 10:28:09.289 DEBUG [GeofencingService onDestroy] 🔴 GeofencingService destroyed 07-04 10:28:14.122 DEBUG [b a] ℹ️ LocationAuthorization: Permission granted 07-04 10:28:14.145 INFO [TSGeofenceManager stopMonitoringSignificantLocationChanges] 🔴 Stop monitoring significant location changes 07-04 10:28:14.157 INFO [HeartbeatService a] 🔴 Stop heartbeat 07-04 10:28:14.190 DEBUG [b a] ℹ️ LocationAuthorization: Permission granted 07-04 10:28:14.235 INFO [TrackingService a] 🔵 setPace: false → false 07-04 10:28:14.259 INFO [BackgroundGeolocation$h onReceive] ╔═════════════════════════════════════════════ ║ Location-provider change: true ╠═════════════════════════════════════════════ ╟─ GPS: true ╟─ Network: true
07-04 10:28:14.312 DEBUG [TSLocationManagerActivity onActivityResult] ✅ Location settings resolution: ACCEPTED 07-04 10:28:14.558 INFO [LocationRequestService b] ℹ️ Location availability: true 07-04 10:28:14.578 INFO [LocationRequestService b] ℹ️ Location availability: true 07-04 10:28:15.842 INFO [LocationRequestService a] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 5 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 52******,13****** acc=24 et=+11h52m6s729ms alt=94.19999694824219], age: 198ms, time: 1562228895642
07-04 10:28:15.877 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: false 07-04 10:28:15.888 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 22.397 07-04 10:28:15.905 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:15.908 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 07-04 10:28:15.912 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 10 07-04 10:28:15.919 INFO [TSLog log] ℹ️ , "onLocation:", {"altitude":94.2,"heading":-1,"speed":-1,"accuracy":24.2,"longitude":13.3612256,"latitude":52.4846144} 07-04 10:28:15.922 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:15.926 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"extras":{},"battery":{"level":1,"is_charging":true},"activity":{"confidence":100,"type":"still"},"coords":{"altitude":94.2,"heading":-1,"speed":-1,"accuracy":24.2,"longitude":13.3612256,"latitude":52.4846144},"odometer":0,"timestamp":"2019-07-04T08:28:15.642Z","uuid":"a35f1cde-e437-470a-a437-84caf1802b4e","is_moving":false,"event":"motionchange"},"name":"location"} 07-04 10:28:15.928 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: motionchange 07-04 10:28:15.935 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 11 07-04 10:28:15.938 INFO [b persist] ✅ INSERT: a35f1cde-e437-470a-a437-84caf1802b4e 07-04 10:28:15.942 INFO [LocationRequestService a] ╔═════════════════════════════════════════════ ║ providerchange LocationResult: 4 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 52******,13****** acc=24 et=+11h52m6s729ms alt=94.19999694824219], age: 300ms, time: 1562228895642
07-04 10:28:15.957 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired providerchange position 07-04 10:28:15.975 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 22.397 07-04 10:28:15.980 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"isMoving":false,"location":{"extras":{},"battery":{"level":1,"is_charging":true},"activity":{"confidence":100,"type":"still"},"coords":{"altitude":94.2,"heading":-1,"speed":-1,"accuracy":24.2,"longitude":13.3612256,"latitude":52.4846144},"odometer":0,"timestamp":"2019-07-04T08:28:15.642Z","uuid":"a35f1cde-e437-470a-a437-84caf1802b4e","is_moving":false,"event":"motionchange"}},"name":"motionchange"} 07-04 10:28:16.003 DEBUG [BackgroundGeolocation isMainActivityActive] NO 07-04 10:28:16.014 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: location 07-04 10:28:16.024 DEBUG [HeadlessTask$2 onHeadlessJsTaskStart] taskId: 12 07-04 10:28:16.032 INFO [TSLog log] ℹ️ , "onLocation:", {"altitude":94.2,"heading":-1,"speed":-1,"accuracy":24.2,"longitude":13.3612256,"latitude":52.4846144} 07-04 10:28:16.032 INFO [b persist] ✅ INSERT: fd10a1d2-fbaf-4dbe-90ef-98d8f13e2562 07-04 10:28:16.041 DEBUG [TSGeofenceManager$2 a] ℹ️ GeofencingClient addGeofences 07-04 10:28:16.041 INFO [TSLog log] ℹ️ , "headlessTaskCalled", {"params":{"extras":{},"battery":{"level":1,"is_charging":true},"activity":{"confidence":100,"type":"still"},"coords":{"altitude":94.2,"heading":-1,"speed":-1,"accuracy":24.2,"longitude":13.3612256,"latitude":52.4846144},"odometer":0,"timestamp":"2019-07-04T08:28:15.642Z","uuid":"fd10a1d2-fbaf-4dbe-90ef-98d8f13e2562","is_moving":false,"provider":{"status":3,"enabled":true,"gps":true,"network":true},"event":"providerchange"},"name":"location"} 07-04 10:28:16.051 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [Home] 07-04 10:28:16.056 DEBUG [TSGeofenceManager$2 a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager found 1/1 within 100000 meters ╠═════════════════════════════════════════════ ╟─ 🎾 Home ╚═════════════════════════════════════════════ 07-04 10:28:16.060 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 10 07-04 10:28:16.072 INFO [ActivityRecognitionService a] 🎾 Start motion-activity updates 07-04 10:28:16.076 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 🎾 Start monitoring stationary region (radius: 150.0 meters) 07-04 10:28:16.100 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 11 07-04 10:28:16.118 DEBUG [HeadlessTask$2 onHeadlessJsTaskFinish] taskId: 12 07-04 10:28:16.129 DEBUG [ActivityRecognitionService a] 🚘 ️DetectedActivity [type=STILL, confidence=100] 07-04 10:28:16.139 DEBUG [ActivityRecognitionService onDestroy] 🔴 ActivityRecognitionService destroyed 07-04 10:28:25.215 INFO [TSLog log] ℹ️ , "navigated to screen", "App" 07-04 10:28:25.312 DEBUG [TSConfig c] ℹ️ Persist config, dirty: [desiredAccuracy, enableHeadless, geofenceProximityRadius, headlessJobService, logLevel, startOnBoot, stopOnTerminate, useSignificantChangesOnly] 07-04 10:28:25.318 DEBUG [b a] ℹ️ LocationAuthorization: Permission granted 07-04 10:28:25.318 DEBUG [TSGeofenceManager a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager found 1/1 within 100000 meters ╠═════════════════════════════════════════════ ╟─ 🎾 Home ╚═════════════════════════════════════════════ 07-04 10:28:25.321 DEBUG [BackgroundGeolocation ready] LocationPermission :true 07-04 10:28:25.328 INFO [ActivityRecognitionService a] 🎾 Start motion-activity updates 07-04 10:28:25.329 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 07-04 10:28:25.332 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 07-04 10:28:25.336 DEBUG [a c] 🎾 Start monitoring powersave changes 07-04 10:28:25.352 DEBUG [b a] ℹ️ LocationAuthorization: Permission granted 07-04 10:28:25.358 INFO [HeartbeatService a] 🔴 Stop heartbeat 07-04 10:28:25.358 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-04 10:28:25.385 DEBUG [ActivityRecognitionService a] 🚘 ️DetectedActivity [type=STILL, confidence=100] 07-04 10:28:25.394 INFO [TSLog log] ℹ️ , "Notification triggered" 07-04 10:28:25.414 INFO [LocationRequestService a] ╔═════════════════════════════════════════════ ║ getCurrentPosition LocationResult: 6 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused 52******,13****** acc=24 et=+11h52m16s457ms alt=94.19999694824219], age: 44ms, time: 1562228905370
07-04 10:28:25.415 INFO [TSLog log] ℹ️ , "BackgroundGeolocation already running" 07-04 10:28:25.420 DEBUG [TSGeofenceManager setLocation] *** isMoving: false | stateChanged: false | timerExpired: false | elapsed: 9728 07-04 10:28:25.437 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired current position 07-04 10:28:25.442 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 23.321499 07-04 10:28:25.454 DEBUG [ActivityRecognitionService onDestroy] 🔴 ActivityRecognitionService destroyed 07-04 10:28:25.500 INFO [LocationRequestService b] ℹ️ Location availability: true 07-04 10:28:25.505 INFO [ActivityRecognitionService a] 🎾 Start motion-activity updates 07-04 10:28:25.507 INFO [TSLog log] ℹ️ , "onLocation:", {"altitude":94.2,"heading":-1,"speed":-1,"accuracy":24.2,"longitude":13.3612256,"latitude":52.4846144} 07-04 10:28:25.509 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 🎾 Start monitoring stationary region (radius: 150.0 meters) 07-04 10:28:25.553 DEBUG [ActivityRecognitionService a] 🚘 ️DetectedActivity [type=STILL, confidence=100] 07-04 10:28:25.568 DEBUG [ActivityRecognitionService onDestroy] 🔴 ActivityRecognitionService destroyed 07-04 10:28:26.403 INFO [TSLog log] ℹ️ , "updating home location from cloud", {"postalCode":"10829","longitude":13.3612513,"latitude":52.4846129,"city":"Berlin"} 07-04 10:28:26.413 INFO [GeofenceDAO destroy] ✅ Home 07-04 10:28:26.415 INFO [GeofenceDAO create] ✅ Home 07-04 10:28:26.418 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [] 07-04 10:28:26.426 INFO [TSLog log] ℹ️ , "Home geofence set", {"postalCode":"10829","longitude":13.3612513,"latitude":52.4846129,"city":"Berlin"} 07-04 10:28:26.671 DEBUG [TSGeofenceManager$b run] evaluation buffer timer elapsed 07-04 10:28:26.687 DEBUG [TSGeofenceManager$2 a] ℹ️ GeofencingClient addGeofences 07-04 10:28:26.691 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [Home] 07-04 10:28:26.694 DEBUG [TSGeofenceManager$2 a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager found 1/1 within 100000 meters ╠═════════════════════════════════════════════ ╟─ 🎾 Home ╚═════════════════════════════════════════════ 07-04 10:28:35.368 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════
07-04 10:28:35.380 DEBUG [TerminateEvent
07-04 10:29:17.576 DEBUG [TerminateEvent
07-04 10:30:08.486 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired current position 07-04 10:30:08.492 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 22.397 07-04 10:30:08.528 INFO [TSLog log] ℹ️ , "onLocation:", {"altitude":94.2,"heading":-1,"speed":-1,"accuracy":15.3,"longitude":13.3612433,"latitude":52.4846208} 07-04 10:30:08.607 INFO [TSLog log] ℹ️ , "updating home location from cloud", {"postalCode":"10829","longitude":13.3612513,"latitude":52.4846129,"city":"Berlin"} 07-04 10:30:08.620 INFO [GeofenceDAO destroy] ✅ Home 07-04 10:30:08.625 INFO [GeofenceDAO create] ✅ Home 07-04 10:30:08.630 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [] 07-04 10:30:08.639 INFO [TSLog log] ℹ️ , "Home geofence set", {"postalCode":"10829","longitude":13.3612513,"latitude":52.4846129,"city":"Berlin"} 07-04 10:30:08.884 DEBUG [TSGeofenceManager$b run] evaluation buffer timer elapsed 07-04 10:30:08.931 DEBUG [TSGeofenceManager$2 a] ℹ️ GeofencingClient addGeofences 07-04 10:30:08.948 DEBUG [TSGeofenceManager c] ℹ️ Persist monitored geofences: [Home] 07-04 10:30:08.969 DEBUG [TSGeofenceManager$2 a] ╔═════════════════════════════════════════════ ║ TSGeofenceManager found 1/1 within 100000 meters ╠═════════════════════════════════════════════ ╟─ 🎾 Home ╚═════════════════════════════════════════════ 07-04 10:30:08.997 INFO [GeofencingService a] ╔═════════════════════════════════════════════ ║ Geofencing Event: ENTER ╠═════════════════════════════════════════════ ╟─ Home ╚═════════════════════════════════════════════ 07-04 10:30:09.005 DEBUG [TSGeofenceManager setLocation] *** isMoving: false | stateChanged: false | timerExpired: false | elapsed: 56 07-04 10:30:09.030 INFO [b persist] ✅ INSERT: 73097797-70d9-4418-b4ef-1bd7ef7f5b1a 07-04 10:30:09.039 DEBUG [b destroyAll] ✅ DELETED: (1) 07-04 10:30:09.050 INFO [TSLog log] ℹ️ , "onLocation:", {"altitude":94.2,"heading":-1,"speed":-1,"accuracy":15.3,"longitude":13.3612433,"latitude":52.4846208} 07-04 10:30:09.062 INFO [TSLog log] ℹ️ , "Location.onGeofence:", "ENTER" 07-04 10:30:09.302 DEBUG [GeofencingService onDestroy] 🔴 GeofencingService destroyed
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.