Open caiorsantanna opened 1 week ago
Plugin version: 4.10.0
Why do you use a version from 1.5 years ago?
See changelog
See LocationError in the API docs to learn what code 1
means. Youβve disabled Location services in your device settings.
Hey, thanks for the quick reply.
Why do you use a version from 1.5 years ago?
We have too many dependencies (plugins), some of them can generate a lot of trouble if we initiate this quest to update the capacitor version, so i have to convice a lot of people to make this happen.
See changelog
Yes, thank you, i just now read it, and the following lines could be related:
[Android] Fix bug in .getCurrentPosition not returning or throwing an error in a condition where Network OFF and GPS ON.
[Android] If a SingleLocationRequest error occurs and at least one sample exits, prefer to resolve the request successfully rather than firing the error (eg: getCurrentPosition, motionchange, providerchange requests).
If you say to me that updating this plugin version will solve this problem, no need for more discussion, I will make this happen and send you an update <3
See LocationError in the API docs to learn what code 1 means. Youβve disabled Location services in your device settings.
Yes, yes, I know what this error means, the problem is that I have to make this error shows on the catch phase, so I can show the adequate error message to the user, so them can know what to do next.
If you say to me that updating this plugin version will solve this problem
.onLocation accepts a 2nd argument onLocationError, which youβll find is receiving the error. See api docs .onLocation
.onLocation accepts a 2nd argument onLocationError, which youβll find is receiving the error. See api docs .onLocation
Ok! I will give it a try and update back to you in a moment, thanks for the quick support.
No luck yet ;(
You could try setting debug: true
on the ready config to see if that gives you more insight
Your Environment
npx cap doctor
)Latest Dependencies:
@capacitor/cli: 6.1.0 @capacitor/core: 6.1.0 @capacitor/android: 6.1.0 @capacitor/ios: 6.1.0
Installed Dependencies:
@capacitor/cli: 4.6.3 @capacitor/core: 4.6.3 @capacitor/android: 4.6.3 @capacitor/ios: 4.6.3
[success] iOS looking great! π [success] Android looking great! π
Expected Behavior
Error message throwed by plugin, and not 'undefined'
Actual Behavior
Plugin throws 'undefined' on any error
Steps to Reproduce
The code:
Context
Ask me more questions if this is not clear enougth
Debug logs
What happens when we turn off location on android
Logs
``` 07-02 14:49:22.105 DEBUG [LoggerFacade$a a] 07-02 14:49:22.106 DEBUG [LoggerFacade$a a] βΉοΈ Persist config, dirty: [] 07-02 14:49:22.106 DEBUG [LoggerFacade$a a] βΉοΈ Persist config, dirty: [headlessJobService] 07-02 14:49:22.107 DEBUG [LoggerFacade$a a] β―οΈ onCreate 07-02 14:49:22.107 INFO [LoggerFacade$a a] β Google Play Services: connected (version code:12451000) 07-02 14:49:22.107 DEBUG [TSSQLiteAppender$c run] βΉοΈ Cleared logs older than 72 hours 07-02 14:51:24.074 DEBUG [TSConfig d] βΉοΈ Persist config, dirty: [allowIdenticalLocations, backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, backgroundPermissionRationale.positiveAction, backgroundPermissionRationale.negativeAction, desiredAccuracy, enableHeadless, fastestLocationUpdateInterval, headers, heartbeatInterval, isMoving, locationTimeout, locationUpdateInterval, logLevel, logMaxDays, notification, notification.title, notification.text, notification.color, notification.smallIcon, notification.largeIcon, params, startOnBoot, stationaryRadius, stopOnTerminate, url] 07-02 14:51:24.090 INFO [HttpService flush] ββββββββββββββββββββββββββββββββββββββββββββββ β HTTP Service (count: 0) β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:51:24.120 INFO [c g] π΅ LocationAuthorization: Requesting Background permission 07-02 14:51:24.942 DEBUG [LifecycleManager onPause] β―οΈ onPause 07-02 14:51:25.806 INFO [c$j onPermissionGranted] β LocationAuthorization: Permission granted 07-02 14:51:25.830 INFO [c e] π΅ Should show backgroundPermissionRationale? true 07-02 14:51:25.839 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 14:51:26.089 DEBUG [TSLocationManagerActivity execute] android.permission.ACCESS_BACKGROUND_LOCATION 07-02 14:51:26.964 DEBUG [TSLocationManagerActivity stop] eventCount: 0 07-02 14:51:27.165 DEBUG [TSLocationManagerActivity onDestroy] 07-02 14:51:27.829 DEBUG [LifecycleManager onPause] β―οΈ onPause 07-02 14:51:27.978 DEBUG [LifecycleManager onStop] β―οΈ onStop 07-02 14:51:29.104 DEBUG [LifecycleManager onStart] β―οΈ onStart 07-02 14:51:29.168 INFO [c$j onPermissionGranted] β LocationAuthorization: Permission granted 07-02 14:51:29.177 DEBUG [HttpService startMonitoringConnectivityChanges] πΎ Start monitoring connectivity changes 07-02 14:51:29.184 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] πΎ Start monitoring powersave changes 07-02 14:51:29.192 INFO [HeartbeatService stop] π΄ Stop heartbeat 07-02 14:51:29.196 INFO [HeartbeatService stop] π΄ Stop heartbeat 07-02 14:51:29.198 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 14:51:29.213 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:51:29.214 INFO [TrackingService changePace] π΅ setPace: true β true 07-02 14:51:29.217 DEBUG [ForegroundNotification createNotificationChannel] NotificationChannel{mId='com.fieldcontrol.orcTSLocationManager', 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, mSoundMissingReason=0} 07-02 14:51:29.225 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:29.235 INFO [TSLocationManager requestLocationUpdates] πΎ Location-services: ON 07-02 14:51:29.237 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:29.239 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:51:29.239 DEBUG [AbstractService start] πΎ TrackingService [eventCount: 1] 07-02 14:51:29.241 INFO [TrackingService handleMotionChangeResult] ββββββββββββββββββββββββββββββββββββββββββββββ β TrackingService motionchange: true β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:51:29.242 DEBUG [AbstractService finish] βοΈοΈ finish TrackingService [eventCount: 0, sticky: true] 07-02 14:51:29.242 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:51:29.242 INFO [TrackingService changePace] π΅ setPace: true β true 07-02 14:51:29.244 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:51:29.247 INFO [TSProviderManager handleProviderChangeEvent] ββββββββββββββββββββββββββββββββββββββββββββββ β Location-provider change: true β βββββββββββββββββββββββββββββββββββββββββββββ ββ GPS: true ββ Network: true ββ AP Mode: false 07-02 14:51:29.249 DEBUG [HttpService a] ββββββββββββββββββββββββββββββββββββββββββββββ β πΆ Connectivity change: connected? true β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:51:29.269 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:29.272 DEBUG [AbstractService start] πΎ TrackingService [eventCount: 1] 07-02 14:51:29.273 INFO [TrackingService handleMotionChangeResult] ββββββββββββββββββββββββββββββββββββββββββββββ β TrackingService motionchange: true β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:51:29.273 DEBUG [AbstractService finish] βοΈοΈ finish TrackingService [eventCount: 0, sticky: true] 07-02 14:51:29.291 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:29.298 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:29.301 DEBUG [AbstractService start] πΎ LocationRequestService [eventCount: 1] 07-02 14:51:29.302 ERROR [LocationRequestService handleStartAction] βΌοΈ Failed to find SingleLocationRequest in START action; requestId: 1; Intent: Intent { act=start cmp=com.fieldcontrol.orc/com.transistorsoft.locationmanager.service.LocationRequestService (has extras) } 07-02 14:51:29.303 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: false] 07-02 14:51:29.304 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: false] 07-02 14:51:29.308 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:29.310 DEBUG [AbstractService start] πΎ LocationRequestService [eventCount: 0] 07-02 14:51:29.313 INFO [SingleLocationRequest startUpdatingLocation] π΅ [SingleLocationRequest start, action: 1, requestId: 2] 07-02 14:51:29.315 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:29.316 INFO [ActivityRecognitionService start] πΎ Start motion-activity updates 07-02 14:51:29.317 DEBUG [AbstractService start] πΎ LocationRequestService [eventCount: 1] 07-02 14:51:29.318 INFO [SingleLocationRequest startUpdatingLocation] π΅ [SingleLocationRequest start, action: 3, requestId: 3] 07-02 14:51:29.319 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: true] 07-02 14:51:29.320 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: true] 07-02 14:51:29.489 DEBUG [TSLocationManagerActivity execute] locationsettings 07-02 14:51:29.490 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:51:29.555 DEBUG [TSLocationManagerActivity execute] locationsettings 07-02 14:51:29.556 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:51:29.562 DEBUG [TSLocationManagerActivity stop] eventCount: 1 07-02 14:51:29.575 DEBUG [TSLocationManagerActivity stop] eventCount: 0 07-02 14:51:29.603 DEBUG [AbstractService onDestroy] π΄ LocationRequestService stopped 07-02 14:51:29.642 DEBUG [TSLocationManagerActivity onDestroy] 07-02 14:51:30.253 INFO [HttpService flush] ββββββββββββββββββββββββββββββββββββββββββββββ β HTTP Service (count: 0) β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:51:32.007 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:32.012 DEBUG [AbstractService start] πΎ TrackingService [eventCount: 1] 07-02 14:51:32.016 DEBUG [TrackingService handleLocationResult] ββββββββββββββββββββββββββββββββββββββββββββββ β TrackingService: LocationResult β βββββββββββββββββββββββββββββββββββββββββββββ ββ π Location[fused -20.813873,-49.372501 hAcc=11.379 et=+12d7h25m19s633ms alt=490.3999938964844 vAcc=1.0] ββ Age: 2559ms, time: 1719942689454 07-02 14:51:32.017 DEBUG [AbstractService finish] βοΈοΈ finish TrackingService [eventCount: 0, sticky: true] 07-02 14:51:32.017 DEBUG [TSLocationManager onLocationResult] ββββββββββββββββββββββββββββββββββββββββββββββ β Process LocationResult β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:51:32.017 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 11.379 07-02 14:51:32.029 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:32.035 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:32.037 DEBUG [AbstractService start] πΎ LocationRequestService [eventCount: 1] 07-02 14:51:32.042 INFO [LocationRequestService handleLocationResult] ββββββββββββββββββββββββββββββββββββββββββββββ β providerchange LocationResult: 3 β βββββββββββββββββββββββββββββββββββββββββββββ ββ π Location[fused -20.813873,-49.372501 hAcc=11.379 et=+12d7h25m19s633ms alt=490.3999938964844 vAcc=1.0], age: 2587ms, time: 1719942689454 07-02 14:51:32.047 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:32.051 DEBUG [AbstractService start] πΎ LocationRequestService [eventCount: 2] 07-02 14:51:32.058 INFO [LocationRequestService handleLocationResult] ββββββββββββββββββββββββββββββββββββββββββββββ β motionchange LocationResult: 2 β βββββββββββββββββββββββββββββββββββββββββββββ ββ π Location[fused -20.813873,-49.372501 hAcc=11.379 et=+12d7h25m19s633ms alt=490.3999938964844 vAcc=1.0], age: 2603ms, time: 1719942689454 07-02 14:51:32.072 INFO [TSLocationManager onSingleLocationResult] π΅ Acquired providerchange position 07-02 14:51:32.073 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 11.379 07-02 14:51:32.079 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:32.081 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: false] 07-02 14:51:32.082 INFO [b persist] β INSERT: b1e74f33-ea1f-498c-b957-686eacd2880e 07-02 14:51:32.084 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 3 isFinished? true 07-02 14:51:32.086 INFO [TSLocationManager onSingleLocationResult] π΅ Acquired motionchange position, isMoving: true 07-02 14:51:32.086 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: false] 07-02 14:51:32.087 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 11.379 07-02 14:51:32.089 INFO [b persist] β INSERT: 709709f7-2563-4ba7-8240-dd194d9ebe2c 07-02 14:51:32.091 INFO [HttpService flush] βΉοΈ HttpService is busy 07-02 14:51:32.092 INFO [HttpService flush] ββββββββββββββββββββββββββββββββββββββββββββββ β HTTP Service (count: 2) β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:51:32.094 DEBUG [TSLocationManager$b onLocation] βΉοΈ Distance from last location: 5840171.0 07-02 14:51:32.095 INFO [TSLocationManager removeLocationUpdates] π΄ Location-services: OFF 07-02 14:51:32.095 INFO [TSLocationManager removeLocationUpdates] π΄ Location-services: OFF 07-02 14:51:32.096 INFO [TSLocationManager requestLocationUpdates] πΎ Location-services: ON 07-02 14:51:32.097 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:51:32.097 INFO [TSLocationManager requestLocationUpdates] πΎ Location-services: ON 07-02 14:51:32.098 DEBUG [AbstractService onDestroy] π΄ LocationRequestService stopped 07-02 14:51:32.098 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:51:32.100 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 2 isFinished? true 07-02 14:51:32.106 INFO [ActivityRecognitionService start] πΎ Start motion-activity updates 07-02 14:51:32.107 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: false] 07-02 14:51:32.108 INFO [b persist] β INSERT: 1a42648a-1372-49e2-b542-03b19a23a13d 07-02 14:51:32.110 INFO [HttpService flush] βΉοΈ HttpService is busy 07-02 14:51:32.114 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:32.123 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:32.125 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: false] 07-02 14:51:32.186 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:32.194 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:32.196 DEBUG [AbstractService start] πΎ BackgroundTaskService [eventCount: 1] 07-02 14:51:32.197 INFO [BackgroundTaskManager$Task start] β³ startBackgroundTask: 1 07-02 14:51:32.206 DEBUG [AbstractService onDestroy] π΄ LocationRequestService stopped 07-02 14:51:32.214 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:32.217 DEBUG [AbstractService start] πΎ TrackingService [eventCount: 1] 07-02 14:51:32.219 DEBUG [TrackingService handleLocationResult] ββββββββββββββββββββββββββββββββββββββββββββββ β TrackingService: LocationResult β βββββββββββββββββββββββββββββββββββββββββββββ ββ π Location[fused -20.813873,-49.372501 hAcc=11.379 et=+12d7h25m19s633ms alt=490.3999938964844 vAcc=1.0] ββ Age: 2764ms, time: 1719942689454 07-02 14:51:32.220 DEBUG [TSLocationManager onLocationResult] ββββββββββββββββββββββββββββββββββββββββββββββ β Process LocationResult β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:51:32.220 DEBUG [TSLocationManager onLocationResult] βΉοΈ Same as last location 07-02 14:51:32.221 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 11.379 07-02 14:51:32.221 INFO [TSScheduleManager oneShot] β° Scheduled OneShot: STOP_TIMEOUT in 300000ms (jobID: 2059034116) 07-02 14:51:32.226 DEBUG [AbstractService finish] βοΈοΈ finish TrackingService [eventCount: 0, sticky: true] 07-02 14:51:32.236 INFO [b persist] β INSERT: 3be02f87-c6d2-4fac-ab12-21ba4da2441b 07-02 14:51:32.243 INFO [HttpService flush] βΉοΈ HttpService is busy 07-02 14:51:32.248 DEBUG [b first] β Locked 1 records 07-02 14:51:32.249 INFO [HttpService a] π΅ HTTP POST: b1e74f33-ea1f-498c-b957-686eacd2880e 07-02 14:51:32.892 INFO [HttpService$h onResponse] π΅ Response: 200 07-02 14:51:32.896 DEBUG [b destroy] β DESTROY: b1e74f33-ea1f-498c-b957-686eacd2880e 07-02 14:51:32.906 DEBUG [b first] β Locked 1 records 07-02 14:51:32.909 INFO [HttpService a] π΅ HTTP POST: 709709f7-2563-4ba7-8240-dd194d9ebe2c 07-02 14:51:33.068 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:33.080 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:33.080 INFO [HttpService$h onResponse] π΅ Response: 200 07-02 14:51:33.081 DEBUG [b destroy] β DESTROY: 709709f7-2563-4ba7-8240-dd194d9ebe2c 07-02 14:51:33.083 DEBUG [AbstractService start] πΎ ActivityRecognitionService [eventCount: 1] 07-02 14:51:33.090 DEBUG [ActivityRecognitionService handleActivityRecognitionResult] π οΈDetectedActivity [type=TILTING, confidence=100] 07-02 14:51:33.092 DEBUG [b first] β Locked 1 records 07-02 14:51:33.093 INFO [HttpService a] π΅ HTTP POST: 1a42648a-1372-49e2-b542-03b19a23a13d 07-02 14:51:33.094 DEBUG [AbstractService finish] βοΈοΈ finish ActivityRecognitionService [eventCount: 0, sticky: false] 07-02 14:51:33.186 INFO [HttpService$h onResponse] π΅ Response: 200 07-02 14:51:33.190 DEBUG [b destroy] β DESTROY: 1a42648a-1372-49e2-b542-03b19a23a13d 07-02 14:51:33.199 DEBUG [b first] β Locked 1 records 07-02 14:51:33.201 INFO [HttpService a] π΅ HTTP POST: 3be02f87-c6d2-4fac-ab12-21ba4da2441b 07-02 14:51:33.347 INFO [HttpService$h onResponse] π΅ Response: 200 07-02 14:51:33.351 DEBUG [b destroy] β DESTROY: 3be02f87-c6d2-4fac-ab12-21ba4da2441b 07-02 14:51:33.355 INFO [BackgroundTaskManager$Task stop] β³ stopBackgroundTask: 1 07-02 14:51:33.356 DEBUG [AbstractService finish] βοΈοΈ finish BackgroundTaskService [eventCount: 0, sticky: false] 07-02 14:51:33.363 DEBUG [AbstractService onDestroy] π΄ BackgroundTaskService stopped 07-02 14:51:34.104 DEBUG [AbstractService onDestroy] π΄ ActivityRecognitionService stopped 07-02 14:51:48.257 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:48.261 DEBUG [AbstractService start] πΎ TrackingService [eventCount: 1] 07-02 14:51:48.262 INFO [TrackingService handleLocationAvailability] βΉοΈ Location availability: false 07-02 14:51:48.262 DEBUG [AbstractService finish] βοΈοΈ finish TrackingService [eventCount: 0, sticky: true] 07-02 14:51:51.875 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:51.877 DEBUG [AbstractService start] πΎ TrackingService [eventCount: 1] 07-02 14:51:51.878 INFO [TrackingService handleLocationAvailability] βΉοΈ Location availability: true 07-02 14:51:51.878 DEBUG [AbstractService finish] βοΈοΈ finish TrackingService [eventCount: 0, sticky: true] 07-02 14:51:58.345 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:51:58.356 DEBUG [AbstractService start] πΎ TrackingService [eventCount: 1] 07-02 14:51:58.357 INFO [TrackingService handleLocationAvailability] βΉοΈ Location availability: false 07-02 14:51:58.357 DEBUG [AbstractService finish] βοΈοΈ finish TrackingService [eventCount: 0, sticky: true] 07-02 14:52:01.759 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:52:01.765 DEBUG [AbstractService start] πΎ TrackingService [eventCount: 1] 07-02 14:52:01.766 INFO [TrackingService handleLocationAvailability] βΉοΈ Location availability: true 07-02 14:52:01.768 DEBUG [AbstractService finish] βοΈοΈ finish TrackingService [eventCount: 0, sticky: true] 07-02 14:52:05.076 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:52:05.093 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:52:05.105 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:52:05.108 DEBUG [AbstractService start] πΎ LocationRequestService [eventCount: 1] 07-02 14:52:05.111 INFO [SingleLocationRequest startUpdatingLocation] π΅ [SingleLocationRequest start, action: 2, requestId: 4] 07-02 14:52:05.115 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: true] 07-02 14:52:12.101 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:52:12.104 DEBUG [AbstractService start] πΎ LocationRequestService [eventCount: 1] 07-02 14:52:12.106 INFO [LocationRequestService handleLocationResult] ββββββββββββββββββββββββββββββββββββββββββββββ β getCurrentPosition LocationResult: 4 β βββββββββββββββββββββββββββββββββββββββββββββ ββ π Location[fused -20.813873,-49.372473 hAcc=11.476 et=+12d7h25m57s525ms alt=490.3999938964844 vAcc=1.0 vel=0.18937269 sAcc=1.5 bear=46.38002 bAcc=45.0], age: 4759ms, time: 1719942727346 07-02 14:52:12.112 INFO [TSLocationManager onSingleLocationResult] π΅ Acquired current position 07-02 14:52:12.115 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 11.379 07-02 14:52:12.118 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:52:12.121 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: false] 07-02 14:52:12.129 DEBUG [AbstractService onDestroy] π΄ LocationRequestService stopped 07-02 14:52:12.130 DEBUG [LocationRequestService handleLocationResult] SingleLocationRequest 4 isFinished? true 07-02 14:52:12.130 DEBUG [AbstractService finish] βοΈοΈ finish LocationRequestService [eventCount: 0, sticky: false] 07-02 14:52:12.131 INFO [b persist] β INSERT: 92ea40ee-438e-48b4-b4c0-784842fccb4a 07-02 14:52:12.134 INFO [HttpService flush] ββββββββββββββββββββββββββββββββββββββββββββββ β HTTP Service (count: 1) β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:52:12.145 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:52:12.151 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:52:12.153 DEBUG [AbstractService start] πΎ BackgroundTaskService [eventCount: 1] 07-02 14:52:12.154 INFO [BackgroundTaskManager$Task start] β³ startBackgroundTask: 2 07-02 14:52:12.166 DEBUG [b first] β Locked 1 records 07-02 14:52:12.167 INFO [HttpService a] π΅ HTTP POST: 92ea40ee-438e-48b4-b4c0-784842fccb4a 07-02 14:52:12.354 INFO [HttpService$h onResponse] π΅ Response: 200 07-02 14:52:12.356 DEBUG [b destroy] β DESTROY: 92ea40ee-438e-48b4-b4c0-784842fccb4a 07-02 14:52:12.366 INFO [BackgroundTaskManager$Task stop] β³ stopBackgroundTask: 2 07-02 14:52:12.367 DEBUG [AbstractService finish] βοΈοΈ finish BackgroundTaskService [eventCount: 0, sticky: false] 07-02 14:52:12.370 DEBUG [AbstractService onDestroy] π΄ BackgroundTaskService stopped 07-02 14:52:13.446 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:52:13.447 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): 100 07-02 14:52:13.448 INFO [TSLocationManager watchPosition] πΎ watchPosition: ON 07-02 14:52:13.452 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:52:13.456 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:52:20.331 INFO [TSLocationManager stopWatchPosition] π΄ watchPosition: OFF 07-02 14:52:20.452 WARN [BackgroundGeolocationPlugin ready] β οΈ #ready already called. Redirecting to #setConfig 07-02 14:52:20.463 DEBUG [TSConfig d] βΉοΈ Persist config, dirty: [headers, params] 07-02 14:52:20.470 INFO [HttpService flush] ββββββββββββββββββββββββββββββββββββββββββββββ β HTTP Service (count: 0) β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:52:27.931 INFO [TSLocationManager onSingleLocationResult] π΅ Acquired providerchange position 07-02 14:52:27.932 DEBUG [TSLocationManager calculateMedianAccuracy] Median accuracy: 11.379 07-02 14:52:27.941 INFO [TSProviderManager handleProviderChangeEvent] ββββββββββββββββββββββββββββββββββββββββββββββ β Location-provider change: false β βββββββββββββββββββββββββββββββββββββββββββββ ββ GPS: false ββ Network: false ββ AP Mode: false 07-02 14:52:27.942 DEBUG [TSGeofenceManager d] βΉοΈ Persist monitored geofences: [] 07-02 14:52:27.943 INFO [b persist] β INSERT: 5539bd33-92c1-4cde-8d33-087ee04a9c79 07-02 14:52:27.953 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:52:27.954 INFO [HttpService flush] ββββββββββββββββββββββββββββββββββββββββββββββ β HTTP Service (count: 1) β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:52:27.962 DEBUG [AbstractService start] πΎ TrackingService [eventCount: 1] 07-02 14:52:27.963 INFO [TrackingService handleLocationAvailability] βΉοΈ Location availability: false 07-02 14:52:27.963 DEBUG [AbstractService finish] βοΈοΈ finish TrackingService [eventCount: 0, sticky: true] 07-02 14:52:27.976 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:52:27.984 WARN [ForegroundNotification buildDefaultLayout] Failed to find notificationLargeIcon: drawable/ic_notification_fc 07-02 14:52:27.986 DEBUG [AbstractService start] πΎ BackgroundTaskService [eventCount: 1] 07-02 14:52:27.987 INFO [BackgroundTaskManager$Task start] β³ startBackgroundTask: 3 07-02 14:52:28.004 DEBUG [b first] β Locked 1 records 07-02 14:52:28.005 INFO [HttpService a] π΅ HTTP POST: 5539bd33-92c1-4cde-8d33-087ee04a9c79 07-02 14:52:28.111 INFO [HttpService$h onResponse] π΅ Response: 200 07-02 14:52:28.113 DEBUG [b destroy] β DESTROY: 5539bd33-92c1-4cde-8d33-087ee04a9c79 07-02 14:52:28.115 INFO [BackgroundTaskManager$Task stop] β³ stopBackgroundTask: 3 07-02 14:52:28.116 DEBUG [AbstractService finish] βοΈοΈ finish BackgroundTaskService [eventCount: 0, sticky: false] 07-02 14:52:28.118 DEBUG [AbstractService onDestroy] π΄ BackgroundTaskService stopped 07-02 14:52:28.207 DEBUG [TSLocationManagerActivity execute] locationsettings 07-02 14:52:28.207 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:52:28.272 DEBUG [TSLocationManagerActivity$b onComplete] βΉοΈ Location Settings Resolution: START 07-02 14:52:29.010 DEBUG [LifecycleManager onPause] β―οΈ onPause 07-02 14:52:29.503 DEBUG [HttpService a] ββββββββββββββββββββββββββββββββββββββββββββββ β πΆ Connectivity change: connected? false β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:52:32.011 DEBUG [TSLocationManagerActivity onActivityResult] β Location settings resolution: DENIED 07-02 14:52:32.012 DEBUG [TSLocationManagerActivity stop] eventCount: 0 07-02 14:52:32.064 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 14:52:32.109 DEBUG [TSLocationManagerActivity onDestroy] 07-02 14:52:34.017 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:55:19.415 DEBUG [TSSQLiteAppender$c run] βΉοΈ Cleared logs older than 24 hours 07-02 14:55:19.415 DEBUG [LoggerFacade$a a] 07-02 14:55:19.416 INFO [LoggerFacade$a a] ββββββββββββββββββββββββββββββββββββββββββββββ β TSLocationManager version: 3.3.1 (418) β βββββββββββββββββββββββββββββββββββββββββββββ ββ samsung SM-M526B @ 13 (capacitor) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": true, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Aceitar localização em segundo plano?", "message": "VocΓͺ precisa aceitar a localização em segundo plano para que a funcionalidade do mapa funcione corretamente.", "positiveAction": "Aceitar", "negativeAction": "Cancelar" }, "batchSync": false, "configUrl": "", "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": true, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": 5000, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": false, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": { "x-access-token": "i almost leaked a vulnerability xD" }, "headlessJobService": "com.fieldcontrol.orc.BackgroundGeolocationHeadlessTask", "heartbeatInterval": 60, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": true, "locationAuthorizationRequest": "Always", "locationTemplate": "", "locationTimeout": 15, "locationUpdateInterval": 5000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 1, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "Field Control", "text": "ServiΓ§o de localização em execução", "color": "#00194a", "channelName": "TSLocationManager", "channelId": "", "smallIcon": "drawable\/ic_notification_fc", "largeIcon": "drawable\/ic_notification_fc", "priority": 0, "sticky": false, "strings": {}, "actions": [] }, "params": { "device": { "uuid": "f965510485702fbc" } }, "persist": true, "persistMode": 2, "schedule": [], "scheduleUseAlarmManager": false, "speedJumpFilter": 300, "startOnBoot": true, "stationaryRadius": 200, "stopAfterElapsedMinutes": 0, "stopOnStationary": false, "stopOnTerminate": false, "stopTimeout": 5, "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking", "url": "https:\/\/azog.fieldcontrol.com.br\/locations", "useSignificantChangesOnly": false, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 0, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 07-02 14:55:19.417 INFO [LoggerFacade$a a] ββββββββββββββββββββββββββββββββββββββββββββββ β DEVICE SENSORS β βββββββββββββββββββββββββββββββββββββββββββββ ββ β ACCELEROMETER: {Sensor name="lsm6dsm Accelerometer Non-wakeup", vendor="STMicro", version=15932, type=1, maxRange=78.4532, resolution=0.0023928226, power=0.15, minDelay=5000} ββ β GYROSCOPE: {Sensor name="lsm6dsm Gyroscope Non-wakeup", vendor="STMicro", version=15932, type=4, maxRange=17.452517, resolution=6.1084726E-4, power=0.555, minDelay=5000} ββ β MAGNETOMETER: {Sensor name="ak0991x Magnetometer Non-wakeup", vendor="akm", version=10077, 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} ββββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:55:19.417 DEBUG [LoggerFacade$a a] β―οΈ onCreate 07-02 14:55:19.418 INFO [LoggerFacade$a a] β Google Play Services: connected (version code:12451000) 07-02 14:55:19.422 DEBUG [TSLocationManager$e run] βΉοΈ Load last odometer location: Location[TSLocationManager -20.813873,-49.372501 hAcc=11.379 et=0 {Bundle[{odometer=0.0}]}] 07-02 14:55:19.442 DEBUG [HttpService startMonitoringConnectivityChanges] πΎ Start monitoring connectivity changes 07-02 14:55:19.461 INFO [TSProviderManager startMonitoring] πΎ Start monitoring location-provider changes 07-02 14:55:19.467 DEBUG [TSGeofenceManager d] βΉοΈ Persist monitored geofences: [] 07-02 14:55:19.486 DEBUG [b prune] βΉοΈ PRUNE -1 days 07-02 14:55:19.795 DEBUG [LifecycleManager onStart] β―οΈ onStart 07-02 14:55:19.807 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 14:55:22.270 DEBUG [TSConfig d] βΉοΈ Persist config, dirty: [allowIdenticalLocations, backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, backgroundPermissionRationale.positiveAction, backgroundPermissionRationale.negativeAction, desiredAccuracy, enableHeadless, fastestLocationUpdateInterval, headers, headlessJobService, heartbeatInterval, isMoving, locationTimeout, locationUpdateInterval, logLevel, logMaxDays, notification, notification.title, notification.text, notification.color, notification.smallIcon, notification.largeIcon, params, startOnBoot, stationaryRadius, stopOnTerminate, url] 07-02 14:55:22.280 DEBUG [c g] βΉοΈ LocationAuthorization: Permission granted 07-02 14:55:22.284 DEBUG [TSGeofenceManager d] βΉοΈ Persist monitored geofences: [] 07-02 14:55:22.286 DEBUG [HttpService startMonitoringConnectivityChanges] πΎ Start monitoring connectivity changes 07-02 14:55:22.289 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] πΎ Start monitoring powersave changes 07-02 14:55:22.293 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:55:22.295 INFO [TSLocationManager requestLocationUpdates] πΎ Location-services: ON 07-02 14:55:22.301 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:55:22.554 DEBUG [TSLocationManagerActivity execute] locationsettings 07-02 14:55:22.555 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:55:22.613 DEBUG [TSLocationManagerActivity$b onComplete] βΉοΈ Location Settings Resolution: START 07-02 14:55:23.334 DEBUG [LifecycleManager onPause] β―οΈ onPause 07-02 14:55:24.115 DEBUG [TSLocationManagerActivity onActivityResult] β Location settings resolution: DENIED 07-02 14:55:24.115 DEBUG [TSLocationManagerActivity stop] eventCount: 0 07-02 14:55:24.151 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 14:55:24.181 DEBUG [TSLocationManagerActivity onDestroy] 07-02 14:55:36.613 ERROR [TSLocationManager getLastLocation] βΌοΈ Failed to get last location: com.google.android.gms.tasks.zzw@faf87bb 07-02 14:55:36.615 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:57:07.418 DEBUG [TSSQLiteAppender$c run] βΉοΈ Cleared logs older than 24 hours 07-02 14:57:07.418 DEBUG [LoggerFacade$a a] 07-02 14:57:07.419 INFO [LoggerFacade$a a] ββββββββββββββββββββββββββββββββββββββββββββββ β TSLocationManager version: 3.3.1 (418) β βββββββββββββββββββββββββββββββββββββββββββββ ββ samsung SM-M526B @ 13 (capacitor) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": true, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Aceitar localização em segundo plano?", "message": "VocΓͺ precisa aceitar a localização em segundo plano para que a funcionalidade do mapa funcione corretamente.", "positiveAction": "Aceitar", "negativeAction": "Cancelar" }, "batchSync": false, "configUrl": "", "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": true, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": 5000, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": false, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": { "x-access-token": "i almost leaked a vulnerability xD" }, "headlessJobService": "com.fieldcontrol.orc.BackgroundGeolocationHeadlessTask", "heartbeatInterval": 60, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": true, "locationAuthorizationRequest": "Always", "locationTemplate": "", "locationTimeout": 15, "locationUpdateInterval": 5000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 1, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "Field Control", "text": "ServiΓ§o de localização em execução", "color": "#00194a", "channelName": "TSLocationManager", "channelId": "", "smallIcon": "drawable\/ic_notification_fc", "largeIcon": "drawable\/ic_notification_fc", "priority": 0, "sticky": false, "strings": {}, "actions": [] }, "params": { "device": { "uuid": "f965510485702fbc" } }, "persist": true, "persistMode": 2, "schedule": [], "scheduleUseAlarmManager": false, "speedJumpFilter": 300, "startOnBoot": true, "stationaryRadius": 200, "stopAfterElapsedMinutes": 0, "stopOnStationary": false, "stopOnTerminate": false, "stopTimeout": 5, "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking", "url": "https:\/\/azog.fieldcontrol.com.br\/locations", "useSignificantChangesOnly": false, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 0, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 07-02 14:57:07.420 INFO [LoggerFacade$a a] ββββββββββββββββββββββββββββββββββββββββββββββ β DEVICE SENSORS β βββββββββββββββββββββββββββββββββββββββββββββ ββ β ACCELEROMETER: {Sensor name="lsm6dsm Accelerometer Non-wakeup", vendor="STMicro", version=15932, type=1, maxRange=78.4532, resolution=0.0023928226, power=0.15, minDelay=5000} ββ β GYROSCOPE: {Sensor name="lsm6dsm Gyroscope Non-wakeup", vendor="STMicro", version=15932, type=4, maxRange=17.452517, resolution=6.1084726E-4, power=0.555, minDelay=5000} ββ β MAGNETOMETER: {Sensor name="ak0991x Magnetometer Non-wakeup", vendor="akm", version=10077, 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} ββββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:57:07.420 DEBUG [LoggerFacade$a a] β―οΈ onCreate 07-02 14:57:07.427 DEBUG [TSLocationManager$e run] βΉοΈ Load last odometer location: Location[TSLocationManager -20.813873,-49.372501 hAcc=11.379 et=0 {Bundle[{odometer=0.0}]}] 07-02 14:57:07.439 DEBUG [HttpService startMonitoringConnectivityChanges] πΎ Start monitoring connectivity changes 07-02 14:57:07.458 INFO [TSProviderManager startMonitoring] πΎ Start monitoring location-provider changes 07-02 14:57:07.464 DEBUG [TSGeofenceManager d] βΉοΈ Persist monitored geofences: [] 07-02 14:57:07.482 DEBUG [b prune] βΉοΈ PRUNE -1 days 07-02 14:57:07.789 DEBUG [LifecycleManager onStart] β―οΈ onStart 07-02 14:57:07.800 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 14:57:11.036 DEBUG [TSConfig d] βΉοΈ Persist config, dirty: [allowIdenticalLocations, backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, backgroundPermissionRationale.positiveAction, backgroundPermissionRationale.negativeAction, desiredAccuracy, enableHeadless, fastestLocationUpdateInterval, headers, headlessJobService, heartbeatInterval, isMoving, locationTimeout, locationUpdateInterval, logLevel, logMaxDays, notification, notification.title, notification.text, notification.color, notification.smallIcon, notification.largeIcon, params, startOnBoot, stationaryRadius, stopOnTerminate, url] 07-02 14:57:11.047 DEBUG [c g] βΉοΈ LocationAuthorization: Permission granted 07-02 14:57:11.050 DEBUG [TSGeofenceManager d] βΉοΈ Persist monitored geofences: [] 07-02 14:57:11.053 DEBUG [HttpService startMonitoringConnectivityChanges] πΎ Start monitoring connectivity changes 07-02 14:57:11.057 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] πΎ Start monitoring powersave changes 07-02 14:57:11.060 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:57:11.062 INFO [TSLocationManager requestLocationUpdates] πΎ Location-services: ON 07-02 14:57:11.069 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:57:11.321 DEBUG [TSLocationManagerActivity execute] locationsettings 07-02 14:57:11.322 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:57:11.381 DEBUG [TSLocationManagerActivity$b onComplete] βΉοΈ Location Settings Resolution: START 07-02 14:57:12.102 DEBUG [LifecycleManager onPause] β―οΈ onPause 07-02 14:57:14.530 DEBUG [TSLocationManagerActivity onActivityResult] β Location settings resolution: DENIED 07-02 14:57:14.533 DEBUG [TSLocationManagerActivity stop] eventCount: 0 07-02 14:57:14.570 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 14:57:14.612 DEBUG [TSLocationManagerActivity onDestroy] 07-02 14:57:16.411 ERROR [TSLocationManager getLastLocation] βΌοΈ Failed to get last location: com.google.android.gms.tasks.zzw@c1b7316 07-02 14:57:16.414 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:59:31.684 DEBUG [LoggerFacade$a a] 07-02 14:59:31.684 DEBUG [TSSQLiteAppender$c run] βΉοΈ Cleared logs older than 24 hours 07-02 14:59:31.685 INFO [LoggerFacade$a a] ββββββββββββββββββββββββββββββββββββββββββββββ β TSLocationManager version: 3.3.1 (418) β βββββββββββββββββββββββββββββββββββββββββββββ ββ samsung SM-M526B @ 13 (capacitor) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": true, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Aceitar localização em segundo plano?", "message": "VocΓͺ precisa aceitar a localização em segundo plano para que a funcionalidade do mapa funcione corretamente.", "positiveAction": "Aceitar", "negativeAction": "Cancelar" }, "batchSync": false, "configUrl": "", "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": true, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": 5000, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": false, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": { "x-access-token": "i almost leaked a vulnerability xD" }, "headlessJobService": "com.fieldcontrol.orc.BackgroundGeolocationHeadlessTask", "heartbeatInterval": 60, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": true, "locationAuthorizationRequest": "Always", "locationTemplate": "", "locationTimeout": 15, "locationUpdateInterval": 5000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 1, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "Field Control", "text": "ServiΓ§o de localização em execução", "color": "#00194a", "channelName": "TSLocationManager", "channelId": "", "smallIcon": "drawable\/ic_notification_fc", "largeIcon": "drawable\/ic_notification_fc", "priority": 0, "sticky": false, "strings": {}, "actions": [] }, "params": { "device": { "uuid": "f965510485702fbc" } }, "persist": true, "persistMode": 2, "schedule": [], "scheduleUseAlarmManager": false, "speedJumpFilter": 300, "startOnBoot": true, "stationaryRadius": 200, "stopAfterElapsedMinutes": 0, "stopOnStationary": false, "stopOnTerminate": false, "stopTimeout": 5, "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking", "url": "https:\/\/azog.fieldcontrol.com.br\/locations", "useSignificantChangesOnly": false, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 0, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 07-02 14:59:31.685 INFO [LoggerFacade$a a] ββββββββββββββββββββββββββββββββββββββββββββββ β DEVICE SENSORS β βββββββββββββββββββββββββββββββββββββββββββββ ββ β ACCELEROMETER: {Sensor name="lsm6dsm Accelerometer Non-wakeup", vendor="STMicro", version=15932, type=1, maxRange=78.4532, resolution=0.0023928226, power=0.15, minDelay=5000} ββ β GYROSCOPE: {Sensor name="lsm6dsm Gyroscope Non-wakeup", vendor="STMicro", version=15932, type=4, maxRange=17.452517, resolution=6.1084726E-4, power=0.555, minDelay=5000} ββ β MAGNETOMETER: {Sensor name="ak0991x Magnetometer Non-wakeup", vendor="akm", version=10077, 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} ββββββββββββββββββββββββββββββββββββββββββββββ 07-02 14:59:31.685 DEBUG [LoggerFacade$a a] β―οΈ onCreate 07-02 14:59:31.692 DEBUG [TSLocationManager$e run] βΉοΈ Load last odometer location: Location[TSLocationManager -20.813873,-49.372501 hAcc=11.379 et=0 {Bundle[{odometer=0.0}]}] 07-02 14:59:31.702 DEBUG [HttpService startMonitoringConnectivityChanges] πΎ Start monitoring connectivity changes 07-02 14:59:31.718 INFO [TSProviderManager startMonitoring] πΎ Start monitoring location-provider changes 07-02 14:59:31.723 DEBUG [TSGeofenceManager d] βΉοΈ Persist monitored geofences: [] 07-02 14:59:31.738 DEBUG [b prune] βΉοΈ PRUNE -1 days 07-02 14:59:31.982 DEBUG [LifecycleManager onStart] β―οΈ onStart 07-02 14:59:31.990 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 14:59:34.260 DEBUG [TSConfig d] βΉοΈ Persist config, dirty: [allowIdenticalLocations, backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, backgroundPermissionRationale.positiveAction, backgroundPermissionRationale.negativeAction, desiredAccuracy, enableHeadless, fastestLocationUpdateInterval, headers, headlessJobService, heartbeatInterval, isMoving, locationTimeout, locationUpdateInterval, logLevel, logMaxDays, notification, notification.title, notification.text, notification.color, notification.smallIcon, notification.largeIcon, params, startOnBoot, stationaryRadius, stopOnTerminate, url] 07-02 14:59:34.270 DEBUG [c g] βΉοΈ LocationAuthorization: Permission granted 07-02 14:59:34.273 DEBUG [TSGeofenceManager d] βΉοΈ Persist monitored geofences: [] 07-02 14:59:34.276 DEBUG [HttpService startMonitoringConnectivityChanges] πΎ Start monitoring connectivity changes 07-02 14:59:34.279 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] πΎ Start monitoring powersave changes 07-02 14:59:34.283 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 14:59:34.285 INFO [TSLocationManager requestLocationUpdates] πΎ Location-services: ON 07-02 14:59:34.291 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:59:34.538 DEBUG [TSLocationManagerActivity execute] locationsettings 07-02 14:59:34.539 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 14:59:34.595 DEBUG [TSLocationManagerActivity$b onComplete] βΉοΈ Location Settings Resolution: START 07-02 14:59:35.316 DEBUG [LifecycleManager onPause] β―οΈ onPause 07-02 14:59:55.009 DEBUG [TSLocationManagerActivity onActivityResult] β Location settings resolution: DENIED 07-02 14:59:55.010 DEBUG [TSLocationManagerActivity stop] eventCount: 0 07-02 14:59:55.057 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 14:59:55.110 DEBUG [TSLocationManagerActivity onDestroy] 07-02 15:00:05.128 ERROR [TSLocationManager getLastLocation] βΌοΈ Failed to get last location: com.google.android.gms.tasks.zzw@5d18c20 07-02 15:00:05.132 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 15:03:58.208 DEBUG [LoggerFacade$a a] 07-02 15:03:58.209 DEBUG [TSSQLiteAppender$c run] βΉοΈ Cleared logs older than 24 hours 07-02 15:03:58.209 INFO [LoggerFacade$a a] ββββββββββββββββββββββββββββββββββββββββββββββ β TSLocationManager version: 3.3.1 (418) β βββββββββββββββββββββββββββββββββββββββββββββ ββ samsung SM-M526B @ 13 (capacitor) { "activityRecognitionInterval": 10000, "allowIdenticalLocations": true, "authorization": {}, "autoSync": true, "autoSyncThreshold": 0, "backgroundPermissionRationale": { "title": "Aceitar localização em segundo plano?", "message": "VocΓͺ precisa aceitar a localização em segundo plano para que a funcionalidade do mapa funcione corretamente.", "positiveAction": "Aceitar", "negativeAction": "Cancelar" }, "batchSync": false, "configUrl": "", "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": true, "enableTimestampMeta": false, "extras": {}, "fastestLocationUpdateInterval": 5000, "foregroundService": true, "geofenceInitialTriggerEntry": true, "geofenceModeHighAccuracy": false, "geofenceProximityRadius": 1000, "geofenceTemplate": "", "headers": { "x-access-token": "i almost leaked a vulnerability xD" }, "headlessJobService": "com.fieldcontrol.orc.BackgroundGeolocationHeadlessTask", "heartbeatInterval": 60, "httpRootProperty": "location", "httpTimeout": 60000, "isMoving": true, "locationAuthorizationRequest": "Always", "locationTemplate": "", "locationTimeout": 15, "locationUpdateInterval": 5000, "locationsOrderDirection": "ASC", "logLevel": 5, "logMaxDays": 1, "maxBatchSize": -1, "maxDaysToPersist": 1, "maxRecordsToPersist": -1, "method": "POST", "minimumActivityRecognitionConfidence": 75, "motionTriggerDelay": 0, "notification": { "layout": "", "title": "Field Control", "text": "ServiΓ§o de localização em execução", "color": "#00194a", "channelName": "TSLocationManager", "channelId": "", "smallIcon": "drawable\/ic_notification_fc", "largeIcon": "drawable\/ic_notification_fc", "priority": 0, "sticky": false, "strings": {}, "actions": [] }, "params": { "device": { "uuid": "f965510485702fbc" } }, "persist": true, "persistMode": 2, "schedule": [], "scheduleUseAlarmManager": false, "speedJumpFilter": 300, "startOnBoot": true, "stationaryRadius": 200, "stopAfterElapsedMinutes": 0, "stopOnStationary": false, "stopOnTerminate": false, "stopTimeout": 5, "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking", "url": "https:\/\/azog.fieldcontrol.com.br\/locations", "useSignificantChangesOnly": false, "enabled": true, "schedulerEnabled": false, "trackingMode": 1, "odometer": 0, "isFirstBoot": false, "didLaunchInBackground": false, "didDeviceReboot": false } 07-02 15:03:58.210 INFO [LoggerFacade$a a] ββββββββββββββββββββββββββββββββββββββββββββββ β DEVICE SENSORS β βββββββββββββββββββββββββββββββββββββββββββββ ββ β ACCELEROMETER: {Sensor name="lsm6dsm Accelerometer Non-wakeup", vendor="STMicro", version=15932, type=1, maxRange=78.4532, resolution=0.0023928226, power=0.15, minDelay=5000} ββ β GYROSCOPE: {Sensor name="lsm6dsm Gyroscope Non-wakeup", vendor="STMicro", version=15932, type=4, maxRange=17.452517, resolution=6.1084726E-4, power=0.555, minDelay=5000} ββ β MAGNETOMETER: {Sensor name="ak0991x Magnetometer Non-wakeup", vendor="akm", version=10077, 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} ββββββββββββββββββββββββββββββββββββββββββββββ 07-02 15:03:58.210 DEBUG [LoggerFacade$a a] β―οΈ onCreate 07-02 15:03:58.216 DEBUG [TSLocationManager$e run] βΉοΈ Load last odometer location: Location[TSLocationManager -20.813873,-49.372501 hAcc=11.379 et=0 {Bundle[{odometer=0.0}]}] 07-02 15:03:58.226 DEBUG [HttpService startMonitoringConnectivityChanges] πΎ Start monitoring connectivity changes 07-02 15:03:58.242 INFO [TSProviderManager startMonitoring] πΎ Start monitoring location-provider changes 07-02 15:03:58.248 DEBUG [TSGeofenceManager d] βΉοΈ Persist monitored geofences: [] 07-02 15:03:58.262 DEBUG [b prune] βΉοΈ PRUNE -1 days 07-02 15:03:58.515 DEBUG [LifecycleManager onStart] β―οΈ onStart 07-02 15:03:58.525 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 15:04:00.814 DEBUG [TSConfig d] βΉοΈ Persist config, dirty: [allowIdenticalLocations, backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, backgroundPermissionRationale.positiveAction, backgroundPermissionRationale.negativeAction, desiredAccuracy, enableHeadless, fastestLocationUpdateInterval, headers, headlessJobService, heartbeatInterval, isMoving, locationTimeout, locationUpdateInterval, logLevel, logMaxDays, notification, notification.title, notification.text, notification.color, notification.smallIcon, notification.largeIcon, params, startOnBoot, stationaryRadius, stopOnTerminate, url] 07-02 15:04:00.823 DEBUG [c g] βΉοΈ LocationAuthorization: Permission granted 07-02 15:04:00.826 DEBUG [TSGeofenceManager d] βΉοΈ Persist monitored geofences: [] 07-02 15:04:00.827 DEBUG [HttpService startMonitoringConnectivityChanges] πΎ Start monitoring connectivity changes 07-02 15:04:00.830 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] πΎ Start monitoring powersave changes 07-02 15:04:00.833 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 15:04:00.835 INFO [TSLocationManager requestLocationUpdates] πΎ Location-services: ON 07-02 15:04:00.841 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 15:04:01.093 DEBUG [TSLocationManagerActivity execute] locationsettings 07-02 15:04:01.094 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 15:04:01.152 DEBUG [TSLocationManagerActivity$b onComplete] βΉοΈ Location Settings Resolution: START 07-02 15:04:01.872 DEBUG [LifecycleManager onPause] β―οΈ onPause 07-02 15:04:08.539 DEBUG [TSLocationManagerActivity onActivityResult] β Location settings resolution: DENIED 07-02 15:04:08.542 DEBUG [TSLocationManagerActivity stop] eventCount: 0 07-02 15:04:08.587 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 15:04:08.619 DEBUG [TSLocationManagerActivity onDestroy] 07-02 15:04:10.878 ERROR [TSLocationManager getLastLocation] βΌοΈ Failed to get last location: com.google.android.gms.tasks.zzw@5f9cf8f 07-02 15:04:10.886 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 15:06:31.939 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1 07-02 15:06:31.940 DEBUG [TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): 100 07-02 15:06:31.941 INFO [TSLocationManager watchPosition] πΎ watchPosition: ON 07-02 15:06:31.942 DEBUG [c h] βΉοΈ LocationAuthorization: Permission granted 07-02 15:06:32.259 INFO [TSLocationManager stopWatchPosition] π΄ watchPosition: OFF 07-02 15:06:38.896 DEBUG [LifecycleManager onPause] β―οΈ onPause 07-02 15:06:39.281 DEBUG [LifecycleManager onStop] β―οΈ onStop 07-02 15:06:39.284 INFO [TSScheduleManager oneShot] β° Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588) 07-02 15:06:49.344 INFO [ScheduleEvent onOneShot] ββββββββββββββββββββββββββββββββββββββββββββββ β β° OneShot event fired: TERMINATE_EVENT β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 15:06:49.345 DEBUG [TerminateEvent$a a] βΉοΈ TERMINATE_EVENT ignored (MainActivity is still active). 07-02 15:06:51.973 DEBUG [LifecycleManager onStart] β―οΈ onStart 07-02 15:06:51.992 DEBUG [LifecycleManager onResume] β―οΈ onResume 07-02 15:07:06.491 DEBUG [HttpService a] ββββββββββββββββββββββββββββββββββββββββββββββ β πΆ Connectivity change: connected? true β βββββββββββββββββββββββββββββββββββββββββββββ 07-02 15:07:07.495 INFO [HttpService flush] ββββββββββββββββββββββββββββββββββββββββββββββ β HTTP Service (count: 0) β βββββββββββββββββββββββββββββββββββββββββββββ ```