transistorsoft / capacitor-background-geolocation

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
MIT License
88 stars 15 forks source link

Undefined error message returning from catch (getCurrentPosition) #260

Open caiorsantanna opened 1 week ago

caiorsantanna commented 1 week ago

Your Environment

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! πŸ‘Œ


* Plugin config provided to `#ready`:
```javascript <!-- syntax-highlighting:  paste your code below -->
{
  "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
}

Expected Behavior

Error message throwed by plugin, and not 'undefined'

Actual Behavior

Plugin throws 'undefined' on any error

Steps to Reproduce

The code:

Screenshot 2024-07-02 at 15 03 01

Context

Ask me more questions if this is not clear enougth

Debug logs

What happens when we turn off location on android

Screenshot 2024-07-02 at 15 04 37

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) ╠═════════════════════════════════════════════ ```
christocracy commented 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.

caiorsantanna commented 1 week ago

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.

christocracy commented 1 week ago

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

caiorsantanna commented 1 week ago

.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.

caiorsantanna commented 1 week ago

No luck yet ;(

image Screenshot 2024-07-02 at 16 09 38

gm112 commented 1 week ago

You could try setting debug: true on the ready config to see if that gives you more insight