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.66k stars 426 forks source link

Location coordinates are not transmitted. #2171

Closed lane4-wiz closed 1 month ago

lane4-wiz commented 1 month ago

Your Environment

Expected Behavior

Actual Behavior

Steps to Reproduce

1. 2. 3. 4.

Context

Debug logs

Logs ``` 10-07 13:29:40.002 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.5.5 (434) ╠═════════════════════════════════════════════ ╟─ samsung SM-S908N @ 14 (react) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": true, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "백그라운드에서 위치에 액세스하도록 허용합니다.", "message": "백그라운드에서 위치를 추적하려면 {backgroundPermissionOptionLabel} 위치 권한을 활성화하세요.", "positiveAction": "{backgroundPermissionOptionLabel} 활성화", "negativeAction": "취소" }, "batchSync": false, "configUrl": "", "crashDetector": { "enabled": false, "accelerometerThresholdHigh": 20, "accelerometerThresholdLow": 4.5, "gyroscopeThresholdHigh": 20, "gyroscopeThresholdLow": 4.5 }, "debug": false, "deferTime": 0, "desiredAccuracy": -1, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": false, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": false, "disableProviderChangeRecord": false, "disableStopDetection": false, "distanceFilter": 10, "elasticityMultiplier": 1, "enableHeadless": false, "enableTimestampMeta": false, "extras": { "driverId": 649, "carId": 125, "allocationId": 0 }, "fastestLocationUpdateInterval": -1, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": false, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": {}, "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask", "heartbeatInterval": 60, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": true, "locationAuthorizationRequest": "Always", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 1000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxMonitoredGeofences": 97, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "[LANE4 드라이버]", "text": "", "color": "", "channelName": "TSLocationManager", "channelId": "", "smallIcon": "", "largeIcon": "", "priority": -1, "sticky": false, "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": "https:\/\/monitoring-api.lane4.ai\/location", "useSignificantChangesOnly": false, "enabled": false, "schedulerEnabled": false, "trackingMode": 1, "odometer": 0, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 10-07 13:29:40.003 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="lsm6dso LSM6DSO Accelerometer Non-wakeup", vendor="STMicro", version=15933, type=1, maxRange=78.4532, resolution=0.0023928226, power=0.17, minDelay=5000} ╟─ ✅ GYROSCOPE: {Sensor name="lsm6dso LSM6DSO Gyroscope Non-wakeup", vendor="STMicro", version=15933, type=4, maxRange=17.453018, resolution=6.108648E-4, power=0.55, minDelay=5000} ╟─ ✅ MAGNETOMETER: {Sensor name="ak0991x AK09918 Magnetometer Non-wakeup", vendor="akm", version=146988, type=2, maxRange=4912.0503, resolution=0.15, power=1.1, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="smd Wakeup", vendor="Samsung", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.001, minDelay=-1} ╚═════════════════════════════════════════════ 10-07 13:29:40.072 DEBUG [TSSQLiteAppender$c run] ℹ️ Cleared logs older than 72 hours 10-07 23:38:35.120 DEBUG [LifecycleManager onCreate] ☯️ onCreate 10-07 23:38:35.121 DEBUG [LifecycleManager onStart] ☯️ onStart 10-07 23:38:35.122 INFO [BackgroundGeolocation ] ✅ Google Play Services: connected (version code:12451000) 10-07 23:38:35.127 INFO [TSProviderManager startMonitoring] 🎾 Start monitoring location-provider changes 10-07 23:38:35.129 DEBUG [LifecycleManager onResume] ☯️ onResume 10-07 23:38:35.133 DEBUG [SQLiteLocationDAO prune] ℹ️ PRUNE -1 days 10-07 23:38:35.397 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [allowIdenticalLocations, backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, backgroundPermissionRationale.positiveAction, backgroundPermissionRationale.negativeAction, desiredAccuracy, extras, headers, headlessJobService, heartbeatInterval, isMoving, logLevel, notification, notification.title, notification.text, params, schedule, startOnBoot, stopOnTerminate, url] 10-07 23:38:35.398 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [allowIdenticalLocations, backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, backgroundPermissionRationale.positiveAction, backgroundPermissionRationale.negativeAction, desiredAccuracy, extras, headers, headlessJobService, heartbeatInterval, isMoving, logLevel, notification, notification.title, notification.text, params, startOnBoot, stopOnTerminate, url] 10-07 23:38:35.400 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [extras] 10-07 23:38:35.404 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════ 10-07 23:38:35.404 INFO [HttpService flush] ℹ️ HttpService is busy 10-07 23:38:35.405 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════ 10-07 23:38:35.646 DEBUG [TSGeofenceManager$d run] evaluation buffer timer elapsed 10-07 23:39:11.049 DEBUG [LifecycleManager onPause] ☯️ onPause 10-07 23:39:11.051 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 00:00:11.049 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.5.5 (434) ╠═════════════════════════════════════════════ ╟─ samsung SM-S908N @ 14 (react) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": true, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "백그라운드에서 위치에 액세스하도록 허용합니다.", "message": "백그라운드에서 위치를 추적하려면 {backgroundPermissionOptionLabel} 위치 권한을 활성화하세요.", "positiveAction": "{backgroundPermissionOptionLabel} 활성화", "negativeAction": "취소" }, "batchSync": false, "configUrl": "", "crashDetector": { "enabled": false, "accelerometerThresholdHigh": 20, "accelerometerThresholdLow": 4.5, "gyroscopeThresholdHigh": 20, "gyroscopeThresholdLow": 4.5 }, "debug": false, "deferTime": 0, "desiredAccuracy": -1, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": false, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": false, "disableProviderChangeRecord": false, "disableStopDetection": false, "distanceFilter": 10, "elasticityMultiplier": 1, "enableHeadless": false, "enableTimestampMeta": false, "extras": { "driverId": 649, "carId": 125, "allocationId": 0 }, "fastestLocationUpdateInterval": -1, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": false, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": {}, "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask", "heartbeatInterval": 60, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": true, "locationAuthorizationRequest": "Always", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 1000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxMonitoredGeofences": 97, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "[LANE4 드라이버]", "text": "", "color": "", "channelName": "TSLocationManager", "channelId": "", "smallIcon": "", "largeIcon": "", "priority": -1, "sticky": false, "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": "https:\/\/monitoring-api.lane4.ai\/location", "useSignificantChangesOnly": false, "enabled": false, "schedulerEnabled": false, "trackingMode": 1, "odometer": 0, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 10-08 00:00:11.050 INFO [TSConfig print] ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="lsm6dso LSM6DSO Accelerometer Non-wakeup", vendor="STMicro", version=15933, type=1, maxRange=78.4532, resolution=0.0023928226, power=0.17, minDelay=5000} ╟─ ✅ GYROSCOPE: {Sensor name="lsm6dso LSM6DSO Gyroscope Non-wakeup", vendor="STMicro", version=15933, type=4, maxRange=17.453018, resolution=6.108648E-4, power=0.55, minDelay=5000} ╟─ ✅ MAGNETOMETER: {Sensor name="ak0991x AK09918 Magnetometer Non-wakeup", vendor="akm", version=146988, type=2, maxRange=4912.0503, resolution=0.15, power=1.1, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="smd Wakeup", vendor="Samsung", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.001, minDelay=-1} ╚═════════════════════════════════════════════ 10-08 00:00:11.092 DEBUG [TSSQLiteAppender$c run] ℹ️ Cleared logs older than 72 hours 10-08 09:51:50.721 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.5.5 (434) ╠═════════════════════════════════════════════ ╟─ samsung SM-S908N @ 14 (react) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": true, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "백그라운드에서 위치에 액세스하도록 허용합니다.", "message": "백그라운드에서 위치를 추적하려면 {backgroundPermissionOptionLabel} 위치 권한을 활성화하세요.", "positiveAction": "{backgroundPermissionOptionLabel} 활성화", "negativeAction": "취소" }, "batchSync": false, "configUrl": "", "crashDetector": { "enabled": false, "accelerometerThresholdHigh": 20, "accelerometerThresholdLow": 4.5, "gyroscopeThresholdHigh": 20, "gyroscopeThresholdLow": 4.5 }, "debug": false, "deferTime": 0, "desiredAccuracy": -1, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": false, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": false, "disableProviderChangeRecord": false, "disableStopDetection": false, "distanceFilter": 10, "elasticityMultiplier": 1, "enableHeadless": false, "enableTimestampMeta": false, "extras": { "driverId": 649, "carId": 125, "allocationId": 0 }, "fastestLocationUpdateInterval": -1, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": false, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": {}, "headlessJobService": "com.transistorsoft.rnbackgroundgeolocation.HeadlessTask", "heartbeatInterval": 60, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": true, "locationAuthorizationRequest": "Always", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 1000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxMonitoredGeofences": 97, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "[LANE4 드라이버]", "text": "", "color": "", "channelName": "TSLocationManager", "channelId": "", "smallIcon": "", "largeIcon": "", "priority": -1, "sticky": false, "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": "https:\/\/monitoring-api.lane4.ai\/location", "useSignificantChangesOnly": false, "enabled": false, "schedulerEnabled": false, "trackingMode": 1, "odometer": 0, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 10-08 09:51:50.722 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="lsm6dso LSM6DSO Accelerometer Non-wakeup", vendor="STMicro", version=15933, type=1, maxRange=78.4532, resolution=0.0023928226, power=0.17, minDelay=5000} ╟─ ✅ GYROSCOPE: {Sensor name="lsm6dso LSM6DSO Gyroscope Non-wakeup", vendor="STMicro", version=15933, type=4, maxRange=17.453018, resolution=6.108648E-4, power=0.55, minDelay=5000} ╟─ ✅ MAGNETOMETER: {Sensor name="ak0991x AK09918 Magnetometer Non-wakeup", vendor="akm", version=146988, type=2, maxRange=4912.0503, resolution=0.15, power=1.1, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="smd Wakeup", vendor="Samsung", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.001, minDelay=-1} ╚═════════════════════════════════════════════ 10-08 09:51:50.733 DEBUG [TSSQLiteAppender$c run] ℹ️ Cleared logs older than 72 hours 10-08 10:00:40.747 DEBUG [LifecycleManager onCreate] ☯️ onCreate 10-08 10:00:40.748 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 10:00:40.748 INFO [BackgroundGeolocation ] ✅ Google Play Services: connected (version code:12451000) 10-08 10:00:40.750 INFO [TSProviderManager startMonitoring] 🎾 Start monitoring location-provider changes 10-08 10:00:40.752 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 10:00:40.758 DEBUG [SQLiteLocationDAO prune] ℹ️ PRUNE -1 days 10-08 10:00:41.060 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [allowIdenticalLocations, backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, backgroundPermissionRationale.positiveAction, backgroundPermissionRationale.negativeAction, desiredAccuracy, extras, headers, headlessJobService, heartbeatInterval, isMoving, logLevel, notification, notification.title, notification.text, params, schedule, startOnBoot, stopOnTerminate, url] 10-08 10:00:41.067 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [extras] 10-08 10:00:41.077 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════ 10-08 10:00:41.087 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════ 10-08 10:00:41.309 DEBUG [TSGeofenceManager$d run] evaluation buffer timer elapsed 10-08 10:00:41.675 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [extras] 10-08 10:00:41.677 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════ 10-08 10:05:04.794 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 10:05:04.795 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 11:31:52.629 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 11:31:52.632 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 11:32:10.761 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 11:32:10.762 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 12:50:08.259 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 12:50:08.265 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 12:50:12.623 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 12:50:12.624 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 13:16:46.055 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 13:16:46.070 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 13:17:50.755 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 13:17:50.756 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 13:18:49.901 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 13:18:49.905 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 13:18:52.120 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 13:18:52.121 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 13:19:27.803 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 13:19:27.809 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 13:19:31.410 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 13:19:31.411 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 13:21:22.214 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 13:21:22.252 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 13:21:27.448 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 13:21:27.450 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 13:22:15.871 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [extras] 10-08 13:22:15.875 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════ 10-08 13:23:14.361 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 13:23:14.368 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 13:23:21.932 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 13:23:21.933 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 13:23:45.755 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 13:23:45.763 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 13:23:55.050 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 13:23:55.051 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 13:32:17.549 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 13:32:17.563 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 13:33:42.292 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 13:33:42.293 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 13:48:49.768 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [extras] 10-08 13:48:49.774 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════ 10-08 13:48:52.562 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 13:48:52.567 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 13:53:04.878 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 13:53:04.879 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 13:55:07.060 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 13:55:07.067 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 13:58:09.361 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 13:58:09.488 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 13:59:16.233 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 13:59:16.245 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:05:09.472 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:05:09.473 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:05:42.087 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:05:42.095 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:05:47.061 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:05:47.062 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:06:20.728 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:06:20.735 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:06:21.438 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:06:21.439 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:06:21.526 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:06:21.535 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:06:40.393 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:06:40.394 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:06:56.188 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:06:56.194 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:07:00.374 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:07:00.375 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:09:16.003 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:09:16.006 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:09:50.720 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:09:50.721 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:11:26.184 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:11:26.190 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:12:36.071 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:12:36.072 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:14:47.721 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:14:47.727 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:14:53.245 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:14:53.246 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:16:03.217 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:16:03.220 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:16:17.412 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:16:17.495 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:18:26.276 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:18:26.288 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:18:43.690 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:18:43.692 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:48:40.282 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:48:40.287 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:48:48.314 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [extras] 10-08 14:48:48.318 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════ 10-08 14:49:09.515 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:49:09.515 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:50:43.265 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:50:43.278 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:50:53.877 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:50:53.878 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:51:00.586 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:51:00.590 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:51:07.572 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:51:07.574 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:51:24.368 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:51:24.369 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:56:07.392 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:56:07.393 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 14:59:31.266 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 14:59:31.271 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 14:59:47.113 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 14:59:47.114 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 15:19:20.193 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 15:19:20.195 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 15:19:25.527 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 15:19:25.529 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 15:28:32.221 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 15:28:32.227 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 15:28:48.196 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 15:28:48.196 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 15:30:27.452 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 15:30:27.453 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 15:30:36.564 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 15:30:36.565 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 15:31:02.404 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 15:31:02.406 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 15:31:05.109 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 15:31:05.110 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 15:46:28.463 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 15:46:28.469 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 15:46:50.819 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 15:46:50.820 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 15:48:44.031 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 15:48:44.035 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 15:48:45.885 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 15:48:45.886 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 16:05:44.928 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 16:05:44.932 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 16:06:35.967 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 16:06:35.967 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 16:07:43.756 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 16:07:43.782 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 16:07:49.742 DEBUG [LifecycleManager onPause] ☯️ onPause 10-08 16:07:49.742 DEBUG [LifecycleManager onStop] ☯️ onStop 10-08 16:08:11.442 DEBUG [LifecycleManager onStart] ☯️ onStart 10-08 16:08:11.452 DEBUG [LifecycleManager onResume] ☯️ onResume 10-08 16:08:19.215 DEBUG [TSConfig e] ℹ️ Persist config, dirty: [extras] 10-08 16:08:19.217 INFO [HttpService flush] ```
christocracy commented 1 month ago

Post your code

christocracy commented 1 month ago

"enabled": false,

Your logs show you’re not calling .start().

check Your code.

lane4-wiz commented 1 month ago
useEffect(() => {
    if (drvIdx) {
      if (isLocationTracking) return;
      BackgroundGeolocation.start().then(() => {
        console.log('- BackgroundGeolocation started successfully');
      });
    } else {
      BackgroundGeolocation.stop().then(() => {
        console.log('- BackgroundGeolocation stopped successfully');
      });
    }
  }, [drvIdx]);
christocracy commented 1 month ago

Yes, check your logic. The logs say that’s not being executed.

lane4-wiz commented 1 month ago

The location information of the remaining 50 or more articles is being collected successfully using the same code, but the problem is only occurring in that article.

christocracy commented 1 month ago

When in doubt, do a test by executing .start() right here

.then(state => {
        console.log('- BackgroundGeolocation is configured and ready: ', state.enabled);
      })

your logs clearly say the plug-in is enabled: false. You will not see locations recorded until the plug-in is enabled: true