react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

Demo App not sending location when approximate location is used

Open seann1081 opened this issue 2 years ago • 10 comments

Your Environment

  • Plugin version: 4.93
  • Platform: Android
  • OS version: 12
  • Device manufacturer / model: Pixel 3
  • React Native version (react-native -v): 0.68.5
  • Plugin config - background geolocation demo app config with disableMotionActivity set to TRUE, desiredAccuracy set to LOW
PASTE_YOUR_CODE_HERE

Expected Behavior

Demo app should send approximate location when it moves between cell tower sites.

Actual Behavior

Location events not sent

Steps to Reproduce

Start demo

  1. Start demo on android
  2. Request Permissions - grant always, but change precision to approximate
  3. Background the demo app
  4. Drive away from one cell tower and go to another.

Context

Some users will not allow precise tracking, and approximate location is good enough for our purposes.

seann1081 avatar Aug 21 '23 21:08 seann1081

Are you moving around. Eg: go outside for a trip of > 1km.

christocracy avatar Aug 21 '23 21:08 christocracy

Plugin version: 4.93

unknown version.

christocracy avatar Aug 21 '23 21:08 christocracy

Thanks. Yes - went for a drive. Logs below

08-21 12:49:36.658 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, backgroundPermissionRationale.negativeAction, debug, desiredAccuracy, enableHeadless, logLevel, maxDaysToPersist, startOnBoot, stopOnTerminate] 08-21 12:49:53.731 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 12:49:53.737 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 12:50:16.415 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 12:50:16.431 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 12:50:18.052 INFO [c g] 🔵 LocationAuthorization: Requesting Background permission 08-21 12:50:18.828 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 12:50:26.961 INFO [c e] 🔵 Should show backgroundPermissionRationale? true 08-21 12:50:26.973 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 12:50:27.187 DEBUG [TSLocationManagerActivity execute] android.permission.ACCESS_BACKGROUND_LOCATION 08-21 12:50:30.602 DEBUG [TSLocationManagerActivity stop] eventCount: 0 08-21 12:50:30.764 DEBUG [TSLocationManagerActivity onDestroy] 08-21 12:50:31.454 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 12:50:31.456 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 12:50:35.809 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 12:50:35.842 INFO [c$j onPermissionGranted] ✅ LocationAuthorization: Permission granted 08-21 12:50:35.862 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 12:50:36.078 DEBUG [TSLocationManagerActivity execute] locationsettings 08-21 12:50:36.079 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -2 08-21 12:50:36.177 DEBUG [TSLocationManagerActivity$b onComplete] ℹ️ Location Settings Resolution: START 08-21 12:50:36.897 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 12:50:59.446 DEBUG [TSLocationManagerActivity onActivityResult] ❌ Location settings resolution: DENIED 08-21 12:50:59.447 DEBUG [TSLocationManagerActivity stop] eventCount: 0 08-21 12:50:59.496 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 12:50:59.527 DEBUG [TSLocationManagerActivity onDestroy] 08-21 12:51:09.978 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [disableMotionActivityUpdates] 08-21 12:51:44.281 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [desiredAccuracy] 08-21 12:52:00.700 DEBUG [c g] ℹ️ LocationAuthorization: Permission granted 08-21 12:52:00.710 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 08-21 12:52:00.724 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] 🎾 Start monitoring powersave changes 08-21 12:52:00.728 INFO [HeartbeatService stop] 🔴 Stop heartbeat 08-21 12:52:00.729 INFO [HeartbeatService stop] 🔴 Stop heartbeat 08-21 12:52:00.730 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 08-21 12:52:00.730 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 08-21 12:52:00.730 INFO [TrackingService changePace] 🔵 setPace: false → false 08-21 12:52:00.730 INFO [TrackingService changePace] 🔵 setPace: false → false 08-21 12:52:00.731 WARN [TSLocationManager onProviderChange] ⚠️ onProviderChange with no location permission -- doing nothing (lastLocation: Location[TSLocationManager 0.000000,0.000000 et=0]) 08-21 12:52:00.732 INFO [TSProviderManager handleProviderChangeEvent] ╔═════════════════════════════════════════════ ║ Location-provider change: true ╠═════════════════════════════════════════════ ╟─ GPS: true ╟─ Network: false ╟─ AP Mode: false

08-21 12:52:00.732 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════

08-21 12:52:00.776 DEBUG [ForegroundNotification createNotificationChannel] NotificationChannel{mId='com.transistorsoft.backgroundgeolocation.reactTSLocationManager', mName=TSLocationManager, mDescription=, mImportance=1, mBypassDnd=false, mLockscreenVisibility=-1, mSound=null, mLights=false, mLightColor=0, mVibration=null, mUserLockedFields=0, mFgServiceShown=false, mVibrationEnabled=false, mShowBadge=false, mDeleted=false, mDeletedTimeMs=-1, mGroup='null', mAudioAttributes=null, mBlockableSystem=false, mAllowBubbles=-1, mImportanceLockedByOEM=false, mImportanceLockedDefaultApp=false, mOriginalImp=-1000, mParent=null, mConversationId=null, mDemoted=false, mImportantConvo=false} 08-21 12:52:00.789 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 12:52:00.791 INFO [SingleLocationRequest startUpdatingLocation] 🔵 [SingleLocationRequest start, action: 1, requestId: 1] 08-21 12:52:00.792 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-21 12:52:00.793 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 12:52:00.796 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 12:52:00.797 INFO [SingleLocationRequest startUpdatingLocation] 🔵 [SingleLocationRequest start, action: 1, requestId: 2] 08-21 12:52:00.798 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-21 12:52:00.800 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 12:52:00.901 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 12:52:00.902 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 2 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d10h6m49s627ms {Bundle[{}]}], age: 93ms, time: 1692579120808

08-21 12:52:00.905 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 2] 08-21 12:52:00.907 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 1 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d10h6m49s627ms {Bundle[{}]}], age: 98ms, time: 1692579120808

08-21 12:52:00.919 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 12:52:00.929 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 12:52:00.963 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 2 isFinished? false 08-21 12:52:00.963 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 12:52:00.963 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 1, sticky: true] 08-21 12:52:00.970 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 1 isFinished? false 08-21 12:52:00.971 DEBUG [TSLocationManagerActivity execute] locationsettings 08-21 12:52:00.971 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 12:52:00.971 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): 100 08-21 12:52:00.987 DEBUG [TSLocationManagerActivity execute] locationsettings 08-21 12:52:00.988 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): 100 08-21 12:52:00.992 DEBUG [TSLocationManagerActivity$b onComplete] ℹ️ Location Settings Resolution: START 08-21 12:52:01.012 DEBUG [TSLocationManagerActivity$b onComplete] ℹ️ Location Settings Resolution: START 08-21 12:52:01.724 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 12:52:01.737 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-21 12:52:05.768 DEBUG [TSLocationManagerActivity onActivityResult] ❌ Location settings resolution: DENIED 08-21 12:52:05.769 DEBUG [TSLocationManagerActivity stop] eventCount: 1 08-21 12:52:05.770 DEBUG [TSLocationManagerActivity onActivityResult] ❌ Location settings resolution: DENIED 08-21 12:52:05.776 DEBUG [TSLocationManagerActivity stop] eventCount: 0 08-21 12:52:05.811 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 12:52:05.813 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-21 12:52:05.872 DEBUG [TSLocationManagerActivity onDestroy] 08-21 12:52:10.949 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 12:52:10.951 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 12:54:06.306 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 12:54:06.998 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 12:54:06.999 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 12:54:23.854 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 12:54:23.856 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 12:54:30.708 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 12:54:30.718 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 12:54:30.724 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-21 12:56:04.772 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [isMoving] 08-21 12:56:04.774 INFO [HeartbeatService stop] 🔴 Stop heartbeat 08-21 12:56:04.779 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 08-21 12:56:04.779 INFO [TrackingService changePace] 🔵 setPace: false → true 08-21 12:56:04.785 DEBUG [AbstractService start] 🎾 TrackingService [eventCount: 1] 08-21 12:56:04.786 INFO [TrackingService handleMotionChangeResult] ╔═════════════════════════════════════════════ ║ TrackingService motionchange: true ╠═════════════════════════════════════════════

08-21 12:56:04.787 DEBUG [AbstractService finish] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 08-21 12:56:04.793 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 12:56:04.796 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService stopped 08-21 12:56:04.804 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 12:56:04.805 INFO [SingleLocationRequest startUpdatingLocation] 🔵 [SingleLocationRequest start, action: 1, requestId: 3] 08-21 12:56:04.806 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-21 12:56:04.806 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 12:56:04.820 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 12:56:04.821 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 3 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d10h10m53s626ms {Bundle[{}]}], age: 13ms, time: 1692579364807

08-21 12:56:04.840 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 12:56:04.844 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 3 isFinished? false 08-21 12:56:04.844 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 12:58:54.460 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 12:58:55.153 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 12:58:55.157 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 12:59:04.590 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 12:59:04.591 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 13:02:14.317 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 13:02:14.322 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 2 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d10h17m3s72ms {Bundle[{}]}], age: 66ms, time: 1692579734253

08-21 13:02:14.327 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: true 08-21 13:02:14.334 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 13:02:14.336 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService stopped 08-21 13:02:14.587 INFO [TSLocationManager requestLocationUpdates] 🎾 Location-services: ON 08-21 13:02:14.589 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): 100 08-21 13:02:14.600 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 2 isFinished? true 08-21 13:02:14.601 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-21 13:02:14.603 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 13:02:14.608 INFO [b persist] ✅ INSERT: 390b9228-3d94-4e80-86af-c67795596cca 08-21 13:02:14.610 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 1) ╠═════════════════════════════════════════════

08-21 13:02:14.615 DEBUG [AbstractService start] 🎾 TrackingService [eventCount: 1] 08-21 13:02:14.616 INFO [TrackingService handleMotionChangeResult] ╔═════════════════════════════════════════════ ║ TrackingService motionchange: true ╠═════════════════════════════════════════════

08-21 13:02:14.616 DEBUG [AbstractService finish] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 08-21 13:02:14.681 DEBUG [AbstractService start] 🎾 TrackingService [eventCount: 1] 08-21 13:02:14.684 DEBUG [TrackingService handleLocationResult] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d10h17m3s72ms {Bundle[{}]}] ╟─ Age: 429ms, time: 1692579734253

08-21 13:02:14.685 DEBUG [AbstractService finish] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 08-21 13:02:14.685 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════

08-21 13:02:14.686 DEBUG [TSLocationManager onLocationResult] ℹ️ IGNORED: same as last location 08-21 13:02:14.698 DEBUG [AbstractService start] 🎾 BackgroundTaskService [eventCount: 1] 08-21 13:02:14.699 INFO [BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 1 08-21 13:02:14.704 DEBUG [b first] ✅ Locked 1 records 08-21 13:02:14.704 INFO [HttpService a] 🔵 HTTP POST: 390b9228-3d94-4e80-86af-c67795596cca 08-21 13:02:16.660 INFO [HttpService$h onResponse] 🔵 Response: 200 08-21 13:02:16.665 DEBUG [b destroy] ✅ DESTROY: 390b9228-3d94-4e80-86af-c67795596cca 08-21 13:02:16.671 INFO [BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 1 08-21 13:02:16.673 DEBUG [AbstractService finish] ⚙️︎ finish BackgroundTaskService [eventCount: 0, sticky: false] 08-21 13:02:16.677 DEBUG [AbstractService onDestroy] 🔴 BackgroundTaskService stopped 08-21 13:12:17.313 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 13:12:17.316 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 3 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d10h27m6s76ms {Bundle[{}]}], age: 57ms, time: 1692580337257

08-21 13:12:17.332 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: true 08-21 13:12:17.333 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 13:12:17.348 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 13:12:17.351 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService stopped 08-21 13:12:17.372 INFO [TSLocationManager removeLocationUpdates] 🔴 Location-services: OFF 08-21 13:12:17.374 INFO [TSLocationManager requestLocationUpdates] 🎾 Location-services: ON 08-21 13:12:17.374 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): 100 08-21 13:12:17.377 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 3 isFinished? true 08-21 13:12:17.378 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-21 13:12:17.379 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 13:12:17.386 INFO [b persist] ✅ INSERT: a39dbbc0-cc39-440d-a1a7-694aeb83d403 08-21 13:12:17.392 DEBUG [AbstractService start] 🎾 TrackingService [eventCount: 1] 08-21 13:12:17.394 DEBUG [TrackingService handleLocationResult] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d10h27m6s76ms {Bundle[{}]}] ╟─ Age: 135ms, time: 1692580337257

08-21 13:12:17.400 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 1) ╠═════════════════════════════════════════════

08-21 13:12:17.400 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: MOTION_ACTIVITY_CHECK in 300000ms (jobID: -18513055) 08-21 13:12:17.403 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════

08-21 13:12:17.403 DEBUG [AbstractService finish] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 08-21 13:12:17.403 DEBUG [TSLocationManager onLocationResult] ℹ️ IGNORED: same as last location 08-21 13:12:17.422 DEBUG [AbstractService start] 🎾 BackgroundTaskService [eventCount: 1] 08-21 13:12:17.422 INFO [BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 2 08-21 13:12:17.440 DEBUG [b first] ✅ Locked 1 records 08-21 13:12:17.440 INFO [HttpService a] 🔵 HTTP POST: a39dbbc0-cc39-440d-a1a7-694aeb83d403 08-21 13:12:18.822 INFO [HttpService$h onResponse] 🔵 Response: 200 08-21 13:12:18.827 DEBUG [b destroy] ✅ DESTROY: a39dbbc0-cc39-440d-a1a7-694aeb83d403 08-21 13:12:18.834 INFO [BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 2 08-21 13:12:18.836 DEBUG [AbstractService finish] ⚙️︎ finish BackgroundTaskService [eventCount: 0, sticky: false] 08-21 13:12:18.840 DEBUG [AbstractService onDestroy] 🔴 BackgroundTaskService stopped 08-21 13:17:17.443 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: MOTION_ACTIVITY_CHECK ╠═════════════════════════════════════════════

08-21 13:17:17.450 INFO [TrackingService onMotionActivityCheckEvent] ℹ️ Distance from motion-activity check location: -4000.0 08-21 13:17:17.490 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: STOP_TIMEOUT in 300000ms (jobID: 2059034116) 08-21 13:22:17.582 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: STOP_TIMEOUT ╠═════════════════════════════════════════════

08-21 13:22:17.585 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [isMoving] 08-21 13:22:17.591 INFO [HeartbeatService stop] 🔴 Stop heartbeat 08-21 13:22:17.593 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 08-21 13:22:17.594 INFO [TSLocationManager removeLocationUpdates] 🔴 Location-services: OFF 08-21 13:22:17.596 INFO [TrackingService changePace] 🔵 setPace: true → false 08-21 13:22:17.613 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 13:22:17.614 INFO [SingleLocationRequest startUpdatingLocation] 🔵 [SingleLocationRequest start, action: 1, requestId: 4] 08-21 13:22:17.616 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-21 13:22:17.617 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 13:22:17.636 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 13:22:17.638 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 4 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d10h37m6s437ms {Bundle[{}]}], age: 18ms, time: 1692580937619

08-21 13:22:17.666 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 13:22:17.673 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 4 isFinished? false 08-21 13:22:17.675 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 13:32:29.399 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 13:32:29.402 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 4 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d10h47m18s129ms {Bundle[{}]}], age: 91ms, time: 1692581549311

08-21 13:32:29.408 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: false 08-21 13:32:29.408 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 13:32:29.423 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 13:32:29.426 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService stopped 08-21 13:32:29.494 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 4 isFinished? true 08-21 13:32:29.495 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 13:32:29.498 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 🎾 Start monitoring stationary region (radius: 150.0m -36.9009009009009,174.7330999634836 hAcc=2000.0) 08-21 13:32:29.500 INFO [b persist] ✅ INSERT: 22a290bf-44bb-46b1-84aa-0864c8278ca1 08-21 13:32:29.504 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 1) ╠═════════════════════════════════════════════

08-21 13:32:29.526 DEBUG [AbstractService start] 🎾 BackgroundTaskService [eventCount: 1] 08-21 13:32:29.526 INFO [BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 3 08-21 13:32:29.534 DEBUG [AbstractService start] 🎾 TrackingService [eventCount: 1] 08-21 13:32:29.535 INFO [TrackingService handleMotionChangeResult] ╔═════════════════════════════════════════════ ║ TrackingService motionchange: false ╠═════════════════════════════════════════════

08-21 13:32:29.541 DEBUG [AbstractService finish] ⚙️︎ finish TrackingService [eventCount: 0, sticky: false] 08-21 13:32:29.547 DEBUG [b first] ✅ Locked 1 records 08-21 13:32:29.548 INFO [HttpService a] 🔵 HTTP POST: 22a290bf-44bb-46b1-84aa-0864c8278ca1 08-21 13:32:29.797 DEBUG [AbstractService onDestroy] 🔴 TrackingService stopped 08-21 13:32:31.050 INFO [HttpService$h onResponse] 🔵 Response: 200 08-21 13:32:31.053 DEBUG [b destroy] ✅ DESTROY: 22a290bf-44bb-46b1-84aa-0864c8278ca1 08-21 13:32:31.059 INFO [BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 3 08-21 13:32:31.060 DEBUG [AbstractService finish] ⚙️︎ finish BackgroundTaskService [eventCount: 0, sticky: false] 08-21 13:32:31.066 DEBUG [AbstractService onDestroy] 🔴 BackgroundTaskService stopped 08-21 13:36:37.029 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 13:36:37.057 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 13:36:37.065 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-21 13:38:37.638 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 13:38:38.363 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 13:38:38.366 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 13:38:47.679 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 13:38:47.680 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 13:40:58.394 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 13:40:58.410 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 13:40:58.414 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-21 13:41:09.293 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 13:41:10.004 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 13:41:10.006 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 13:41:26.821 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 13:41:26.823 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 13:43:40.586 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 13:43:40.614 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 13:43:40.619 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-21 13:44:42.659 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 08-21 13:44:42.670 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 13:44:42.671 INFO [SingleLocationRequest startUpdatingLocation] 🔵 [SingleLocationRequest start, action: 2, requestId: 5] 08-21 13:44:42.672 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 13:44:42.700 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 13:44:42.702 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ getCurrentPosition LocationResult: 5 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d10h59m31s498ms {Bundle[{}]}], age: 22ms, time: 1692582282680

08-21 13:44:42.706 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 13:44:42.706 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired current position 08-21 13:44:42.709 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 13:44:42.710 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService stopped 08-21 13:44:42.724 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 5 isFinished? true 08-21 13:44:42.725 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 13:44:42.726 INFO [b persist] ✅ INSERT: 7f28f3d1-0f2f-485c-924b-790298e295c5 08-21 13:44:42.728 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 1) ╠═════════════════════════════════════════════

08-21 13:44:42.738 DEBUG [AbstractService start] 🎾 BackgroundTaskService [eventCount: 1] 08-21 13:44:42.739 INFO [BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 4 08-21 13:44:42.743 DEBUG [b first] ✅ Locked 1 records 08-21 13:44:42.743 INFO [HttpService a] 🔵 HTTP POST: 7f28f3d1-0f2f-485c-924b-790298e295c5 08-21 13:44:43.856 INFO [HttpService$h onResponse] 🔵 Response: 200 08-21 13:44:43.859 DEBUG [b destroy] ✅ DESTROY: 7f28f3d1-0f2f-485c-924b-790298e295c5 08-21 13:44:43.863 INFO [BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 4 08-21 13:44:43.864 DEBUG [AbstractService finish] ⚙️︎ finish BackgroundTaskService [eventCount: 0, sticky: false] 08-21 13:44:43.867 DEBUG [AbstractService onDestroy] 🔴 BackgroundTaskService stopped 08-21 13:44:49.065 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 13:44:49.800 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 13:44:49.804 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 13:44:59.096 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 13:44:59.097 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 13:57:13.368 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.2.7 (413) ╠═════════════════════════════════════════════ ╟─ Google Pixel 3 @ 12 (react-native) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": false, "authorization": { "strategy": "JWT", "accessToken": "eyJhb", "refreshToken": "a4bce", "refreshUrl": "https://tracker.transistorsoft.com/api/refresh_token", "refreshPayload": { "refresh_token": "{refreshToken}" }, "refreshHeaders": { "Authorization": "Bearer {accessToken}" }, "expires": -1 }, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Allow {applicationName} to access this device's location even when closed or not in use.", "message": "This app collects location data to enable recording your trips to work and calculate distance-travelled.", "positiveAction": "Change to "{backgroundPermissionOptionLabel}"", "negativeAction": "Cancel" }, "batchSync": false, "configUrl": "", "debug": true, "deferTime": 0, "desiredAccuracy": 100, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": false, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": true, "disableProviderChangeRecord": 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": "Always", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 1000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 14, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "", "text": "Location Service activated", "color": "", "channelName": "TSLocationManager", "channelId": "", "smallIcon": "", "largeIcon": "", "priority": 0, "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://tracker.transistorsoft.com/api/locations", "useSignificantChangesOnly": false, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 0, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 08-21 13:57:13.369 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="BMI160 Accelerometer", vendor="BOSCH", version=1, type=1, maxRange=156.99008, resolution=0.004790957, power=0.18, minDelay=5000} ╟─ ✅ GYROSCOPE: {Sensor name="BMI160 Gyroscope", vendor="BOSCH", version=1, type=4, maxRange=34.906555, resolution=0.0010652635, power=0.9, minDelay=5000} ╟─ ✅ MAGNETOMETER: {Sensor name="LIS2MDL Magnetometer", vendor="STMicro", version=262, type=2, maxRange=4915.2, resolution=0.1, power=0.2, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="Significant Motion", vendor="Google", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.25, minDelay=-1} ╚═════════════════════════════════════════════ 08-21 13:57:13.375 DEBUG [LifecycleManager onCreate] ☯️ onCreate 08-21 13:57:13.375 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 13:57:13.376 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 13:57:13.378 INFO [BackgroundGeolocation ] ✅ Google Play Services: connected (version code:12451000) 08-21 13:57:13.388 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 08-21 13:57:13.414 INFO [TSProviderManager startMonitoring] 🎾 Start monitoring location-provider changes 08-21 13:57:13.414 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════

08-21 13:57:13.432 DEBUG [b prune] ℹ️ PRUNE -14 days 08-21 13:57:14.568 DEBUG [TransistorAuthorizationToken$b run] 🔑 Found cached token for tracker.transistorsoft.com 08-21 13:57:14.618 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-21 13:57:14.674 DEBUG [c g] ℹ️ LocationAuthorization: Permission granted 08-21 13:57:14.819 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 08-21 13:57:14.822 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] 🎾 Start monitoring powersave changes 08-21 13:57:14.825 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 08-21 13:57:14.825 INFO [HeartbeatService stop] 🔴 Stop heartbeat 08-21 13:57:14.944 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 13:57:14.945 INFO [SingleLocationRequest startUpdatingLocation] 🔵 [SingleLocationRequest start, action: 1, requestId: 1] 08-21 13:57:14.948 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-21 13:57:14.954 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 13:57:14.993 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 13:57:14.995 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 1 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.882883,174.691860 hAcc=2000.0 et=+28d11h12m3s769ms {Bundle[{}]}], age: 44ms, time: 1692583034950

08-21 13:57:15.045 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 13:57:15.077 DEBUG [TSLocationManagerActivity execute] locationsettings 08-21 13:57:15.078 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): 100 08-21 13:57:15.106 DEBUG [TSLocationManagerActivity$b onComplete] ℹ️ Location Settings Resolution: START 08-21 13:57:15.116 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 13:57:15.136 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 1 isFinished? false 08-21 13:57:15.137 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 13:57:15.841 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 13:57:17.501 DEBUG [TSLocationManagerActivity onActivityResult] ❌ Location settings resolution: DENIED 08-21 13:57:17.502 DEBUG [TSLocationManagerActivity stop] eventCount: 0 08-21 13:57:17.541 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 13:57:17.544 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-21 13:57:17.580 DEBUG [TSLocationManagerActivity onDestroy] 08-21 13:57:21.841 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [isMoving] 08-21 13:57:21.843 INFO [HeartbeatService stop] 🔴 Stop heartbeat 08-21 13:57:21.848 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 08-21 13:57:21.848 INFO [TrackingService changePace] 🔵 setPace: false → true 08-21 13:57:21.855 DEBUG [AbstractService start] 🎾 TrackingService [eventCount: 1] 08-21 13:57:21.856 INFO [TrackingService handleMotionChangeResult] ╔═════════════════════════════════════════════ ║ TrackingService motionchange: true ╠═════════════════════════════════════════════

08-21 13:57:21.857 DEBUG [AbstractService finish] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 08-21 13:57:21.863 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 13:57:21.868 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 0] 08-21 13:57:21.868 INFO [SingleLocationRequest startUpdatingLocation] 🔵 [SingleLocationRequest start, action: 1, requestId: 2] 08-21 13:57:21.868 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService stopped 08-21 13:57:21.869 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-21 13:57:21.870 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 13:57:21.884 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 13:57:21.885 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 2 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.882883,174.691860 hAcc=2000.0 et=+28d11h12m10s689ms {Bundle[{}]}], age: 14ms, time: 1692583041870

08-21 13:57:21.903 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 13:57:21.907 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 2 isFinished? false 08-21 13:57:21.908 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 13:57:32.070 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 13:57:32.071 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 13:57:34.040 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 13:57:34.737 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 13:57:34.739 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 13:57:51.569 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 13:57:51.570 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 14:01:41.470 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 14:01:41.485 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 14:01:51.108 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [desiredAccuracy] 08-21 14:01:54.724 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 14:01:55.421 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 14:01:55.423 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 14:02:04.765 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 14:02:04.767 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 14:02:05.107 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 14:02:05.126 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 14:02:22.096 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 14:02:22.795 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 14:02:22.797 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 14:02:32.125 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 14:02:32.126 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 14:08:14.374 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 14:08:14.377 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 2 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d11h23m3s134ms {Bundle[{}]}], age: 61ms, time: 1692583694315

08-21 14:08:14.382 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: true 08-21 14:08:14.384 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 14:08:14.392 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 14:08:14.395 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService stopped 08-21 14:08:14.437 INFO [TSLocationManager requestLocationUpdates] 🎾 Location-services: ON 08-21 14:08:14.437 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -2 08-21 14:08:14.440 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 2 isFinished? true 08-21 14:08:14.444 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-21 14:08:14.446 INFO [b persist] ✅ INSERT: 4653e2d8-ff6c-4e5a-8199-d04a4ef3e052 08-21 14:08:14.448 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 14:08:14.449 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 1) ╠═════════════════════════════════════════════

08-21 14:08:14.470 DEBUG [AbstractService start] 🎾 BackgroundTaskService [eventCount: 1] 08-21 14:08:14.471 INFO [BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 1 08-21 14:08:14.480 DEBUG [AbstractService start] 🎾 TrackingService [eventCount: 1] 08-21 14:08:14.483 DEBUG [TrackingService handleLocationResult] ╔═════════════════════════════════════════════ ║ TrackingService: LocationResult ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d11h23m3s134ms {Bundle[{}]}] ╟─ Age: 166ms, time: 1692583694315

08-21 14:08:14.484 DEBUG [TSLocationManager onLocationResult] ╔═════════════════════════════════════════════ ║ Process LocationResult ╠═════════════════════════════════════════════

08-21 14:08:14.485 DEBUG [AbstractService finish] ⚙️︎ finish TrackingService [eventCount: 0, sticky: true] 08-21 14:08:14.485 DEBUG [TSLocationManager locationIsInvalid] Distance from last location: 4184.6553, apparent speed: 6.4138055 08-21 14:08:14.485 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 14:08:14.492 DEBUG [b first] ✅ Locked 1 records 08-21 14:08:14.493 INFO [HttpService a] 🔵 HTTP POST: 4653e2d8-ff6c-4e5a-8199-d04a4ef3e052 08-21 14:08:14.497 INFO [b persist] ✅ INSERT: 097e104c-6049-4958-aca9-4f234ac60c11 08-21 14:08:14.501 INFO [HttpService flush] ℹ️ HttpService is busy 08-21 14:08:16.154 INFO [HttpService$h onResponse] 🔵 Response: 200 08-21 14:08:16.159 DEBUG [b destroy] ✅ DESTROY: 4653e2d8-ff6c-4e5a-8199-d04a4ef3e052 08-21 14:08:16.168 DEBUG [b first] ✅ Locked 1 records 08-21 14:08:16.169 INFO [HttpService a] 🔵 HTTP POST: 097e104c-6049-4958-aca9-4f234ac60c11 08-21 14:08:16.460 INFO [HttpService$h onResponse] 🔵 Response: 200 08-21 14:08:16.464 DEBUG [b destroy] ✅ DESTROY: 097e104c-6049-4958-aca9-4f234ac60c11 08-21 14:08:16.472 INFO [BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 1 08-21 14:08:16.474 DEBUG [AbstractService finish] ⚙️︎ finish BackgroundTaskService [eventCount: 0, sticky: false] 08-21 14:08:16.478 DEBUG [AbstractService onDestroy] 🔴 BackgroundTaskService stopped 08-21 14:30:08.610 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 14:30:08.627 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 14:32:35.779 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 14:32:36.471 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 14:32:36.474 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 14:32:54.798 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 14:32:54.799 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 14:37:50.031 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 14:37:50.051 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 14:37:53.051 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 14:37:53.746 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 14:37:53.749 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 14:38:10.583 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 14:38:10.584 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 15:05:26.373 DEBUG [LifecycleManager onStart] ☯️ onStart 08-21 15:05:26.386 DEBUG [LifecycleManager onResume] ☯️ onResume 08-21 15:05:30.156 DEBUG [TSConfig d] ℹ️ Persist config, dirty: [isMoving] 08-21 15:05:30.159 INFO [HeartbeatService stop] 🔴 Stop heartbeat 08-21 15:05:30.160 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 08-21 15:05:30.160 INFO [TSLocationManager removeLocationUpdates] 🔴 Location-services: OFF 08-21 15:05:30.162 INFO [TrackingService changePace] 🔵 setPace: true → false 08-21 15:05:30.171 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 15:05:30.172 INFO [SingleLocationRequest startUpdatingLocation] 🔵 [SingleLocationRequest start, action: 1, requestId: 3] 08-21 15:05:30.173 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-21 15:05:30.174 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 15:05:30.190 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 15:05:30.191 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 3 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d12h20m18s996ms {Bundle[{}]}], age: 14ms, time: 1692587130178

08-21 15:05:30.214 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 15:05:30.226 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 3 isFinished? false 08-21 15:05:30.227 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-21 15:07:42.238 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-21 15:07:42.925 DEBUG [LifecycleManager onPause] ☯️ onPause 08-21 15:07:42.928 DEBUG [LifecycleManager onStop] ☯️ onStop 08-21 15:08:00.784 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-21 15:08:00.786 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active). 08-21 15:15:43.987 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-21 15:15:43.988 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 3 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.900901,174.733100 hAcc=2000.0 et=+28d12h30m32s723ms {Bundle[{}]}], age: 83ms, time: 1692587743905

08-21 15:15:43.995 INFO [TSLocationManager onSingleLocationResult] 🔵 Acquired motionchange position, isMoving: false 08-21 15:15:43.997 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-21 15:15:44.014 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 15:15:44.019 DEBUG [AbstractService onDestroy] 🔴 LocationRequestService stopped 08-21 15:15:44.073 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 3 isFinished? true 08-21 15:15:44.074 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: false] 08-21 15:15:44.075 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 🎾 Start monitoring stationary region (radius: 150.0m -36.9009009009009,174.7330999634836 hAcc=2000.0) 08-21 15:15:44.091 INFO [b persist] ✅ INSERT: f533be36-6fb5-4a89-a99e-aa9ea1414c47 08-21 15:15:44.097 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 1) ╠═════════════════════════════════════════════

08-21 15:15:44.111 DEBUG [AbstractService start] 🎾 TrackingService [eventCount: 1] 08-21 15:15:44.112 INFO [TrackingService handleMotionChangeResult] ╔═════════════════════════════════════════════ ║ TrackingService motionchange: false ╠═════════════════════════════════════════════

08-21 15:15:44.137 DEBUG [AbstractService finish] ⚙️︎ finish TrackingService [eventCount: 0, sticky: false] 08-21 15:15:44.163 DEBUG [AbstractService start] 🎾 BackgroundTaskService [eventCount: 1] 08-21 15:15:44.166 INFO [BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 2 08-21 15:15:44.169 DEBUG [b first] ✅ Locked 1 records 08-21 15:15:44.170 INFO [HttpService a] 🔵 HTTP POST: f533be36-6fb5-4a89-a99e-aa9ea1414c47 08-21 15:15:44.392 DEBUG [AbstractService onDestroy] 🔴 TrackingService stopped 08-21 15:15:45.429 INFO [HttpService$h onResponse] 🔵 Response: 200 08-21 15:15:45.431 DEBUG [b destroy] ✅ DESTROY: f533be36-6fb5-4a89-a99e-aa9ea1414c47 08-21 15:15:45.437 INFO [BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 2 08-21 15:15:45.438 DEBUG [AbstractService finish] ⚙️︎ finish BackgroundTaskService [eventCount: 0, sticky: false] 08-21 15:15:45.441 DEBUG [AbstractService onDestroy] 🔴 BackgroundTaskService stopped 08-21 17:12:24.603 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ TSLocationManager version: 3.2.7 (413) ╠═════════════════════════════════════════════ ╟─ Google Pixel 3 @ 12 (react-native) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": false, "authorization": { "strategy": "JWT", "accessToken": "eyJhb", "refreshToken": "a4bce", "refreshUrl": "https://tracker.transistorsoft.com/api/refresh_token", "refreshPayload": { "refresh_token": "{refreshToken}" }, "refreshHeaders": { "Authorization": "Bearer {accessToken}" }, "expires": -1 }, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Allow {applicationName} to access this device's location even when closed or not in use.", "message": "This app collects location data to enable recording your trips to work and calculate distance-travelled.", "positiveAction": "Change to "{backgroundPermissionOptionLabel}"", "negativeAction": "Cancel" }, "batchSync": false, "configUrl": "", "debug": true, "deferTime": 0, "desiredAccuracy": -2, "desiredOdometerAccuracy": 100, "disableAutoSyncOnCellular": false, "disableElasticity": false, "disableLocationAuthorizationAlert": false, "disableMotionActivityUpdates": true, "disableProviderChangeRecord": 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": "Always", "locationTemplate": "", "locationTimeout": 60, "locationUpdateInterval": 1000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 3, "maxBatchSize": -1, "maxDaysToPersist": 14, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "", "text": "Location Service activated", "color": "", "channelName": "TSLocationManager", "channelId": "", "smallIcon": "", "largeIcon": "", "priority": 0, "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://tracker.transistorsoft.com/api/locations", "useSignificantChangesOnly": false, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 0, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 08-21 17:12:24.613 INFO [LoggerFacade$a a] ╔═════════════════════════════════════════════ ║ DEVICE SENSORS ╠═════════════════════════════════════════════ ╟─ ✅ ACCELEROMETER: {Sensor name="BMI160 Accelerometer", vendor="BOSCH", version=1, type=1, maxRange=156.99008, resolution=0.004790957, power=0.18, minDelay=5000} ╟─ ✅ GYROSCOPE: {Sensor name="BMI160 Gyroscope", vendor="BOSCH", version=1, type=4, maxRange=34.906555, resolution=0.0010652635, power=0.9, minDelay=5000} ╟─ ✅ MAGNETOMETER: {Sensor name="LIS2MDL Magnetometer", vendor="STMicro", version=262, type=2, maxRange=4915.2, resolution=0.1, power=0.2, minDelay=10000} ╟─ ✅ SIGNIFICANT_MOTION: {Sensor name="Significant Motion", vendor="Google", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.25, minDelay=-1} ╚═════════════════════════════════════════════ 08-22 09:38:14.930 INFO [BackgroundGeolocation ] ✅ Google Play Services: connected (version code:12451000) 08-22 09:38:14.947 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 08-22 09:38:14.973 INFO [TSProviderManager startMonitoring] 🎾 Start monitoring location-provider changes 08-22 09:38:14.978 DEBUG [HttpService a] ╔═════════════════════════════════════════════ ║ 📶 Connectivity change: connected? true ╠═════════════════════════════════════════════

08-22 09:38:14.980 DEBUG [HeadlessTask onHeadlessEvent] 💀 event: providerchange 08-22 09:38:14.982 ERROR [HeadlessTask invoke] ‼️ Tried to start task BackgroundGeolocation while in foreground, but this is not allowed. 08-22 09:38:15.008 DEBUG [b prune] ℹ️ PRUNE -14 days 08-22 09:38:15.104 DEBUG [LifecycleManager onCreate] ☯️ onCreate 08-22 09:38:15.105 DEBUG [LifecycleManager onStart] ☯️ onStart 08-22 09:38:15.105 DEBUG [LifecycleManager onResume] ☯️ onResume 08-22 09:38:15.107 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-22 09:38:16.098 DEBUG [TransistorAuthorizationToken$b run] 🔑 Found cached token for tracker.transistorsoft.com 08-22 09:38:16.364 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-22 09:38:16.375 DEBUG [c g] ℹ️ LocationAuthorization: Permission granted 08-22 09:38:16.458 DEBUG [HttpService startMonitoringConnectivityChanges] 🎾 Start monitoring connectivity changes 08-22 09:38:16.461 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] 🎾 Start monitoring powersave changes 08-22 09:38:16.465 DEBUG [c h] ℹ️ LocationAuthorization: Permission granted 08-22 09:38:16.466 INFO [HeartbeatService stop] 🔴 Stop heartbeat 08-22 09:38:16.568 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-22 09:38:16.570 INFO [SingleLocationRequest startUpdatingLocation] 🔵 [SingleLocationRequest start, action: 1, requestId: 1] 08-22 09:38:16.574 WARN [ActivityRecognitionService start] ⚠️ Cannot start motion-activity updates: permission is denied 08-22 09:38:16.582 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-22 09:38:16.601 DEBUG [AbstractService start] 🎾 LocationRequestService [eventCount: 1] 08-22 09:38:16.604 INFO [LocationRequestService handleLocationResult] ╔═════════════════════════════════════════════ ║ motionchange LocationResult: 1 ╠═════════════════════════════════════════════ ╟─ 📍 Location[fused -36.774775,175.030049 hAcc=2000.0 et=+29d6h53m5s399ms {Bundle[{}]}], age: 22ms, time: 1692653896581

08-22 09:38:16.680 INFO [TSScheduleManager oneShot] ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 08-22 09:38:16.695 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 2000.0 08-22 09:38:16.741 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 1 isFinished? false 08-22 09:38:16.741 DEBUG [AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true] 08-22 09:38:16.765 DEBUG [TSLocationManagerActivity execute] locationsettings 08-22 09:38:16.766 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -2 08-22 09:38:16.812 DEBUG [TSLocationManagerActivity$b onComplete] ℹ️ Location Settings Resolution: START 08-22 09:38:17.562 DEBUG [LifecycleManager onPause] ☯️ onPause 08-22 09:38:19.117 DEBUG [TSLocationManagerActivity onActivityResult] ❌ Location settings resolution: DENIED 08-22 09:38:19.118 DEBUG [TSLocationManagerActivity stop] eventCount: 0 08-22 09:38:19.167 DEBUG [LifecycleManager onResume] ☯️ onResume 08-22 09:38:19.168 INFO [HttpService flush] ╔═════════════════════════════════════════════ ║ HTTP Service (count: 0) ╠═════════════════════════════════════════════

08-22 09:38:19.216 DEBUG [TSLocationManagerActivity onDestroy] 08-22 09:38:31.155 INFO [ScheduleEvent onOneShot] ╔═════════════════════════════════════════════ ║ ⏰ OneShot event fired: TERMINATE_EVENT ╠═════════════════════════════════════════════

08-22 09:38:31.157 DEBUG [TerminateEvent$a a] ℹ️ TERMINATE_EVENT ignored (MainActivity is still active).

seann1081 avatar Aug 21 '23 21:08 seann1081

Seems location event sent when I 'start' the changePace button.

seann1081 avatar Aug 21 '23 21:08 seann1081

You've disabled Motion permission and Wifi seems to be disabled. The plugin cannot automatically trigger location-tracking (via stationary geofences exit), since geofences require Wifi enabled.

08-21 12:52:00.732 INFO [TSProviderManager handleProviderChangeEvent]
╔═════════════════════════════════════════════
║ Location-provider change: true
╠═════════════════════════════════════════════
╟─ GPS: true
╟─ Network: false
╟─ AP Mode: false

The only thing that will trigger location tracking for you is .changePace(true).

christocracy avatar Aug 21 '23 22:08 christocracy

Thanks - so if using approximate accuracy, we MUST have permission for motion? (assuming that users will turn off wifi) That's good to know.

seann1081 avatar Aug 21 '23 23:08 seann1081

if using approximate accuracy, we MUST have permission for motion?

No, I did not say that. I'm just commenting on what I see in your logs.

assuming that users will turn off wifi

Why would users turn off Wifi? That's an unusual thing to do.

The plugin is able to trigger automatic location-tracking in two ways: Motion API or a geofence around the last known position. That goes for any mode of location (High or approximate accuracy).

If the user disables both Motion permission and Wfii, it is impossible for the plugin to know when the device is in-motion.

christocracy avatar Aug 21 '23 23:08 christocracy

Thanks Chris. Our app is for RV owners in New Zealand - they can do what they like with wifi and we still want to know roughly where they are. For example, they may turn off wifi to save power, as when they are travelling, most of the time they won't be within wifi range. It seems that the best option is to use motionActivity updates, and explain to users why we need the permission for that. As per a different question, we're stuck with Expo 46 for now, and there isn't a permissions package available to determine whether the app has been granted permission for Motion Updates. For clarification, if the plugin is using precise mode without motiionActivity and WIFI is OFF, does the plugin create geofences internally and use gps for detecting exit events based on distanceFilter and last known position?

seann1081 avatar Aug 22 '23 08:08 seann1081

@seann1081 do you solve problem with detecting status of Motion Updates state in Expo?

superyarik avatar Oct 07 '23 00:10 superyarik

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

github-actions[bot] avatar May 06 '24 01:05 github-actions[bot]

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

github-actions[bot] avatar May 20 '24 01:05 github-actions[bot]