Skip to content

[Help Wanted]: plugin not resetting geolocation config each time boot app and ready() function is called #2504

@Ikshit001

Description

@Ikshit001

Required Reading

  • Confirmed

Plugin Version

5.0.3

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

Nothing Phone 2A

Device operating-systems(s)

Android 15

React Native / Expo version

expo

What do you require assistance about?

I am attaching logs log config is not showing updated config as written in code is it not reset when install new build if not how to do it

[Optional] Plugin Code and/or Config

useEffect(() => {
    if (!token || !refreshToken || !hubId) {
      return;
    }
    BackgroundGeolocation.onLocation((location) => {
      console.log("📍 LOCATION DETECTED", {
        lat: location.coords.latitude,
        lng: location.coords.longitude,
        accuracy: location.coords.accuracy,
        event: location.event,
        odometer: location.odometer,
      });
    });

    BackgroundGeolocation.onMotionChange((motion) => {
      console.log("Motion change", motion);
    });


    BackgroundGeolocation.onAuthorization(async (event: AuthorizationEvent) => {
      if (event.success) {
        await TokenManager.setTokens(
          event.response?.access_token || event.response?.data?.access_token,
          event.response?.refresh_token || event.response?.data?.refresh_token
        );
      } else {
        syncLibraryTokens();
      }
    })

    BackgroundGeolocation.onHttp((response: HttpEvent) => {
      console.log(`[http] ${response.status} ${response.responseText}`);
    });

    BackgroundGeolocation.ready({
      geolocation: {
        desiredAccuracy: BackgroundGeolocation.DesiredAccuracy.Navigation,
        locationUpdateInterval: 10000,
        fastestLocationUpdateInterval:5000,
        locationAuthorizationRequest:
          BackgroundGeolocation.LocationRequest.Always,
      },
      persistence: {
        locationTemplate:
          '{"lat":<%= latitude %>,"lng":<%= longitude %>,"timestamp": "<%= timestamp %>"}',
        extras: {
          hub_id: hubId,
        },
      },
      app: {
        stopOnTerminate: false,
        startOnBoot: true,
        enableHeadless: true,
        notification: {
          title: "Background Geolocation",
          text: "Tracking location",
          smallIcon: "mipmap/ic_launcher",
          sticky: true,
        },
      },
      logger: {
        logLevel: BackgroundGeolocation.LogLevel.Verbose,
        debug:false,
        logMaxDays:1
      },
      http: {
        url: `${API_CONFIG.BASE_URL}${API_CONFIG.ENDPOINTS.RIDER.UPDATE_LOCATION}`,
        method: "POST",
        autoSync: true,
        batchSync: true,
        rootProperty: "data",
        maxBatchSize:100,
        headers: {
          "Content-Type": "application/json",
          "platform-type": "app",
          "app-secret-key": "Test",
        },
      },
      authorization: {
        strategy: "JWT",
        accessToken: token,
        refreshToken: refreshToken,
        refreshUrl: `${API_CONFIG.BASE_URL}${API_CONFIG.ENDPOINTS.AUTH.REFRESH_GEO_LOCATION}`,
        refreshPayload: {
          "refresh_token": "{refreshToken}",
        },
        refreshHeaders: {
          "platform-type": "app",
          "app-secret-key": "Test",
        },
      },
    }).then((state: State) => {
      if (!state.enabled) {
        BackgroundGeolocation.start()
      }
    });

    return () => {
      BackgroundGeolocation.removeListeners();
    };
  }, [token, refreshToken, hubId])

[Optional] Relevant log output

02-19 10:31:28.451 DEBUG [LoggerFacade$a a] ☯️  onCreate
02-19 10:31:28.452 DEBUG [LoggerFacade$a a] ☯️  onStart
02-19 10:31:28.452 DEBUG [LoggerFacade$a a] ☯️  onResume
02-19 10:31:28.453 INFO [LoggerFacade$a a] 
  ✅  Google Play Services: connected (version code:12451000)
02-19 10:31:28.453 INFO [LoggerFacade$a a] ⏱️ [TSConfig hydrateTime] 1ms
02-19 10:31:28.453 INFO [LoggerFacade$a a] ⏱️ [JNILoader loadLibrary] tslocationmanager 4ms
02-19 10:31:28.453 INFO [LoggerFacade$a a] 
╔═════════════════════════════════════════════
║ TSLocationManager version: 4.0.16-SNAPSHOT (4036)
╠═════════════════════════════════════════════
╟─ com.hero.partnrtms.app
╟─ Nothing A142 @ 15 (react)
{
  "actions": [],
  "activity": {
    "activityRecognitionInterval": 10000,
    "disableMotionActivityUpdates": false,
    "disableStopDetection": false,
    "minimumActivityRecognitionConfidence": 75,
    "motionTriggerDelay": 0,
    "stopOnStationary": false,
    "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking"
  },
  "activityRecognitionInterval": 10000,
  "allowIdenticalLocations": false,
  "allowTap": true,
  "app": {
    "backgroundPermissionRationale": {},
    "enableHeadless": false,
    "foregroundService": true,
    "headlessJobService": "",
    "heartbeatInterval": -1,
    "mainActivityName": null,
    "notification": {
      "actions": [],
      "allowTap": true,
      "channelDescription": "Location tracking",
      "channelId": "bggeo",
      "channelName": "BackgroundGeolocation",
      "color": "",
      "importance": 2,
      "largeIcon": "",
      "layout": "",
      "priority": -1,
      "smallIcon": "mipmap\/ic_launcher",
      "sticky": false,
      "strings": {},
      "tapActivity": "",
      "text": "Tracking location",
      "title": "Background Geolocation"
    },
    "schedule": [],
    "scheduleUseAlarmManager": false,
    "serviceLaunchDelay": 1000,
    "startOnBoot": false,
    "stopOnTerminate": true
  },
  "authorization": {
    "accessToken": "✱✱✱",
    "expires": -1,
    "refreshHeaders": {},
    "refreshPayload": {},
    "refreshToken": "✱✱✱",
    "refreshUrl": "✱✱✱",
    "strategy": "JWT"
  },
  "autoSync": true,
  "autoSyncThreshold": 0,
  "backgroundPermissionRationale": {},
  "batchSync": false,
  "channelDescription": "Location tracking",
  "channelId": "bggeo",
  "channelName": "BackgroundGeolocation",
  "color": "",
  "debug": false,
  "deferTime": 0,
  "desiredAccuracy": 100,
  "didDeviceReboot": false,
  "didShowBackgroundPermissionRationale": false,
  "disableAutoSyncOnCellular": false,
  "disableElasticity": false,
  "disableLocationAuthorizationAlert": false,
  "disableMotionActivityUpdates": false,
  "disableProviderChangeRecord": false,
  "disableStopDetection": false,
  "distanceFilter": 10,
  "elasticityMultiplier": 1,
  "enableHeadless": false,
  "enableTimestampMeta": false,
  "enabled": false,
  "extras": {},
  "fastestLocationUpdateInterval": -1,
  "foregroundService": true,
  "geofenceInitialTriggerEntry": true,
  "geofenceModeHighAccuracy": true,
  "geofenceProximityRadius": 1000,
  "geofenceTemplate": "",
  "geolocation": {
    "allowIdenticalLocations": false,
    "deferTime": 0,
    "desiredAccuracy": 100,
    "disableElasticity": false,
    "disableLocationAuthorizationAlert": false,
    "distanceFilter": 10,
    "elasticityMultiplier": 1,
    "enableTimestampMeta": false,
    "fastestLocationUpdateInterval": -1,
    "filter": {
      "burstWindow": 10,
      "filterDebug": false,
      "kalmanDebug": false,
      "kalmanProfile": 0,
      "maxBurstDistance": 300,
      "maxImpliedSpeed": 60,
      "odometerAccuracyThreshold": 20,
      "odometerUseKalmanFilter": true,
      "policy": 2,
      "rollingWindow": 5,
      "trackingAccuracyThreshold": 100,
      "useKalman": true
    },
    "geofenceInitialTriggerEntry": true,
    "geofenceModeHighAccuracy": true,
    "geofenceProximityRadius": 1000,
    "locationAuthorizationRequest": "Always",
    "locationTimeout": 60,
    "locationUpdateInterval": 1000,
    "stationaryRadius": 150,
    "stopAfterElapsedMinutes": 0,
    "stopTimeout": 5,
    "useCLLocationAccuracy": false,
    "useSignificantChangesOnly": false
  },
  "headers": {},
  "headlessJobService": "",
  "heartbeatEnabled": false,
  "heartbeatInterval": -1,
  "http": {
    "autoSync": true,
    "autoSyncThreshold": 0,
    "batchSync": false,
    "disableAutoSyncOnCellular": false,
    "headers": {},
    "maxBatchSize": -1,
    "method": "POST",
    "params": {},
    "rootProperty": "location",
    "timeout": 60000,
    "url": ""
  },
  "httpRootProperty": "location",
  "httpTimeout": 60000,
  "importance": 2,
  "isFirstBoot": true,
  "isMoving": false,
  "largeIcon": "",
  "layout": "",
  "locationAuthorizationRequest": "Always",
  "locationTemplate": "",
  "locationTimeout": 60,
  "locationUpdateInterval": 1000,
  "locationsOrderDirection": "ASC",
  "logLevel": 0,
  "logMaxDays": 3,
  "logger": {
    "debug": false,
    "logLevel": 0,
    "logMaxDays": 3
  },
  "maxBatchSize": -1,
  "maxDaysToPersist": 1,
  "maxRecordsToPersist": -1,
  "method": "POST",
  "minimumActivityRecognitionConfidence": 75,
  "motionTriggerDelay": 0,
  "notification": {
    "actions": [],
    "allowTap": true,
    "channelDescription": "Location tracking",
    "channelId": "bggeo",
    "channelName": "BackgroundGeolocation",
    "color": "",
    "importance": 2,
    "largeIcon": "",
    "layout": "",
    "priority": -1,
    "smallIcon": "mipmap\/ic_launcher",
    "sticky": false,
    "strings": {},
    "tapActivity": "",
    "text": "Tracking location",
    "title": "Background Geolocation"
  },
  "odometer": 0,
  "odometerError": 0,
  "params": {},
  "persistMode": 2,
  "persistence": {
    "disableProviderChangeRecord": false,
    "extras": {},
    "geofenceTemplate": "",
    "locationTemplate": "",
    "locationsOrderDirection": "ASC",
    "maxDaysToPersist": 1,
    "maxRecordsToPersist": -1,
    "persistMode": 2
  },
  "priority": -1,
  "schedule": [],
  "scheduleUseAlarmManager": false,
  "schedulerEnabled": false,
  "serviceLaunchDelay": 1000,
  "smallIcon": "mipmap\/ic_launcher",
  "startOnBoot": false,
  "stationaryRadius": 150,
  "sticky": false,
  "stopAfterElapsedMinutes": 0,
  "stopOnStationary": false,
  "stopOnTerminate": true,
  "stopTimeout": 5,
  "strings": {},
  "tapActivity": "",
  "text": "Tracking location",
  "title": "Background Geolocation",
  "trackingMode": 1,
  "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
  "url": "",
  "useCLLocationAccuracy": false,
  "useSignificantChangesOnly": false
}
02-19 10:31:28.453 INFO [LoggerFacade$a a] 
╔═════════════════════════════════════════════
║ DEVICE SENSORS
╠═════════════════════════════════════════════
╟─ ✅  ACCELEROMETER: {Sensor name="lsm6dso_acc", vendor="st", version=1, type=1, maxRange=78.453606, resolution=0.0012, power=0.001, minDelay=5000}
╟─ ✅  GYROSCOPE: {Sensor name="lsm6dso_gyro", vendor="st", version=1, type=4, maxRange=34.9063, resolution=0.0011, power=0.001, minDelay=5000}
╟─ ✅  MAGNETOMETER: {Sensor name="mmc5603", vendor="memsic", version=1, type=2, maxRange=4912.0503, resolution=0.15, power=0.001, minDelay=20000}
╟─ ✅  SIGNIFICANT_MOTION: {Sensor name="significant", vendor="mtk", version=1, type=17, maxRange=1.0, resolution=1.0, power=0.001, minDelay=-1}
╚═════════════════════════════════════════════
02-19 10:31:55.405 DEBUG [a a] NotificationChannel{mId='bggeo', mName=BackgroundGeolocation, mDescription=, mImportance=3, mBypassDnd=false, mLockscreenVisibility=-1, mSound=null, mLights=false, mLightColor=0, mVibrationPattern=null, mVibrationEffect=null, mUserLockedFields=0, mUserVisibleTaskShown=false, mVibrationEnabled=false, mShowBadge=false, mDeleted=false, mDeletedTimeMs=-1, mGroup='null', mAudioAttributes=null, mBlockableSystem=false, mAllowBubbles=-1, mImportanceLockedDefaultApp=false, mOriginalImp=-1000, mParent=null, mConversationId=null, mDemoted=false, mImportantConvo=false, mLastNotificationUpdateTimeMs=0, mEssential= false}
02-19 10:31:55.407 INFO [HttpService flush] 
╔═════════════════════════════════════════════
║ HTTP Service (count: 0)
╠═════════════════════════════════════════════

02-19 10:31:55.587 DEBUG [LocationAuthorization withBackgroundPermission] 
  ℹ️  LocationAuthorization: Permission granted
02-19 10:31:55.618 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:31:55.619 INFO [TSGeofenceManager start] 
  🎾  Start monitoring geofences
02-19 10:31:55.624 DEBUG [HttpService startMonitoringConnectivityChanges] 
  🎾  Start monitoring connectivity changes
02-19 10:31:55.624 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:31:55.634 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] 
  🎾  Start monitoring powersave changes
02-19 10:31:55.638 INFO [ActivityRecognitionService d] 
  🎾  Start motion-activity updates
02-19 10:31:55.643 INFO [k c] 
  🔴  Stop heartbeat
02-19 10:31:55.645 DEBUG [HttpService a] 
╔═════════════════════════════════════════════
║ 📶  Connectivity change: connected? true
╠═════════════════════════════════════════════

02-19 10:31:55.656 INFO [TrackingService a] 
  🔵  setPace: falsefalse
02-19 10:31:55.765 DEBUG [SingleLocationRequest trySatisfyLastLocation] 📍  
╟─ age: 450548ms
╟─ maximumAge: 30000
╟─ desiredAccuracy: 20.0
╟─ meetsAccuracy: false
╟─ meetsStaleness: false

02-19 10:31:55.766 DEBUG [LocationAuthorization withPermission] 
  ℹ️  LocationAuthorization: Permission granted
02-19 10:31:55.768 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:31:55.769 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:31:55.798 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:31:55.801 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:31:55.906 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] LocationRequestService (warm)
02-19 10:31:55.928 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:31:55.930 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:31:56.018 DEBUG [AbstractService a] 
  🎾  start [LocationRequestService  startId: 1, eventCount: 1]
02-19 10:31:56.019 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] ActivityRecognitionService (warm)
02-19 10:31:56.019 INFO [SingleLocationRequest startUpdatingLocation] 
  🔵  [SingleLocationRequest start, action: 1, requestId: 1]
02-19 10:31:56.021 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [LocationRequestService startId: 1, eventCount: 0, sticky: true]
02-19 10:31:56.034 DEBUG [TSLocationManagerActivity a] locationsettings
02-19 10:31:56.078 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:31:56.079 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:31:56.089 DEBUG [AbstractService a] 
  🎾  start [ActivityRecognitionService  startId: 1, eventCount: 1]
02-19 10:31:56.090 DEBUG [ActivityRecognitionService a] 
  🚘 ️DetectedActivity [type=STILL, confidence=100]
02-19 10:31:56.091 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [ActivityRecognitionService startId: 1, eventCount: 0, sticky: false]
02-19 10:31:56.307 DEBUG [AbstractService f] 
  ⚙️︎  ActivityRecognitionService.stopSelfResult(1): true
02-19 10:31:56.310 DEBUG [AbstractService onDestroy] 
  🔴  ActivityRecognitionService stopped
02-19 10:31:56.434 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] ActivityRecognitionService (warm)
02-19 10:31:56.481 DEBUG [TSLocationManagerActivity onDestroy] locationsettings
02-19 10:31:56.500 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:31:56.517 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:31:56.528 DEBUG [AbstractService a] 
  🎾  start [ActivityRecognitionService  startId: 1, eventCount: 1]
02-19 10:31:56.529 INFO [ActivityRecognitionService a] 
╔═════════════════════════════════════════════
║ Motion Transition Result
╠═════════════════════════════════════════════
╟─ 🎾  ENTER: still
╚═════════════════════════════════════════════
02-19 10:31:56.529 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [ActivityRecognitionService startId: 1, eventCount: 0, sticky: false]
02-19 10:31:56.647 INFO [HttpService flush] 
╔═════════════════════════════════════════════
║ HTTP Service (count: 0)
╠═════════════════════════════════════════════

02-19 10:31:56.732 DEBUG [AbstractService f] 
  ⚙️︎  ActivityRecognitionService.stopSelfResult(1): true
02-19 10:31:56.732 DEBUG [AbstractService onDestroy] 
  🔴  ActivityRecognitionService stopped
02-19 10:31:59.099 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] LocationRequestService (warm)
02-19 10:31:59.103 DEBUG [AbstractService a] 
  🎾  1:1 [LocationRequestService  startId: 2, eventCount: 1]
02-19 10:31:59.107 INFO [TSLocationManager a] 
╔═════════════════════════════════════════════
║ motionchange LocationResult: 1 (2752ms old)
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 28.464992,77.056375 hAcc=15.722 et=+3d15h23m27s727ms alt=226.90000915527344 vAcc=1.0], time: 1771477316355

02-19 10:31:59.109 INFO [Odometer b] 
  ℹ️  Update odometer: 2.58 (± 22.23m)
02-19 10:31:59.111 INFO [TSLocationManager onSingleLocationResult] 
  🔵  MOTIONCHANGE isMoving=false df=10.0 — resetting short-term filter state
02-19 10:31:59.112 INFO [TSLocationManager onSingleLocationResult] 
  🔵  Acquired motionchange position, isMoving: false
02-19 10:31:59.114 DEBUG [AbstractService b] 
  🎾  STOP [LocationRequestService startId: 3, eventCount: 2]
02-19 10:31:59.114 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [LocationRequestService startId: 3, eventCount: 1, sticky: false]
02-19 10:31:59.138 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 
  🎾  Start monitoring stationary region (radius: 150.0m 28.4649917,77.0563753 hAcc=15.722)
02-19 10:31:59.139 INFO [c0 a] 
  ✅  💾 INSERT: a8c00e32-8158-46fd-9b4f-4c01912e5a5a
02-19 10:31:59.140 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [LocationRequestService startId: 2, eventCount: 0, sticky: false]
02-19 10:31:59.143 INFO [HttpService flush] 
╔═════════════════════════════════════════════
║ HTTP Service (count: 1)
╠═════════════════════════════════════════════

02-19 10:31:59.145 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] TrackingService (warm)
02-19 10:31:59.152 DEBUG [AbstractService a] 
  🎾  motionchange [TrackingService  startId: 1, eventCount: 1]
02-19 10:31:59.153 INFO [TrackingService l] 
╔═════════════════════════════════════════════
║ TrackingService motionchange: false
╠═════════════════════════════════════════════

02-19 10:31:59.158 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [TrackingService startId: 1, eventCount: 0, sticky: true]
02-19 10:31:59.168 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] GeofencingService (warm)
02-19 10:31:59.174 INFO [BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 1
02-19 10:31:59.177 DEBUG [AbstractService a] 
  🎾  STATIONARY_GEOFENCE [GeofencingService  startId: 1, eventCount: 1]
02-19 10:31:59.178 DEBUG [GeofencingService b] 
╔═════════════════════════════════════════════
║ Stationary EXIT distance evaluation
╠═════════════════════════════════════════════
╟─ distance=0.0m, accuracy=15.722m, radius=150.0m
╟─ 📍  Stationary=Location[fused 28.464992,77.056375 hAcc=15.722 et=+3d15h23m27s727ms alt=226.90000915527344 vAcc=1.0]
╟─ 📍  Trigger=Location[fused 28.464992,77.056375 hAcc=15.722 et=+3d15h23m27s727ms alt=226.90000915527344 vAcc=1.0]
╚═════════════════════════════════════════════
02-19 10:31:59.178 WARN [GeofencingService b] 
  ❌ Ignoring spurious stationary geofence EXIT (still possibly inside)
02-19 10:31:59.178 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 
  🎾  Continue monitoring stationary region (radius: 150m 28.4649917,77.0563753 hAcc=15.722)
02-19 10:31:59.179 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [GeofencingService startId: 1, eventCount: 0, sticky: false]
02-19 10:31:59.180 DEBUG [c0 a] 
  ✅  Locked 1 records
02-19 10:31:59.180 INFO [HttpService a] 
  🔵  HTTP POST batch (1)
02-19 10:31:59.343 DEBUG [AbstractService f] 
  ⚙️︎  LocationRequestService.stopSelfResult(3): true
02-19 10:31:59.344 DEBUG [AbstractService onDestroy] 
  🔴  LocationRequestService stopped
02-19 10:31:59.380 DEBUG [AbstractService f] 
  ⚙️︎  GeofencingService.stopSelfResult(1): true
02-19 10:31:59.380 DEBUG [AbstractService onDestroy] 
  🔴  GeofencingService stopped
02-19 10:31:59.959 INFO [HttpService$e onResponse] 
  🔵  Response: 204
02-19 10:31:59.960 DEBUG [c0 a] 
  ✅  DELETED: (1)
02-19 10:31:59.964 DEBUG [c0 a] 
  ✅  Locked 0 records
02-19 10:31:59.965 INFO [BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 1
02-19 10:32:34.852 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:32:34.854 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:32:44.869 INFO [ScheduleEvent a] 
╔═════════════════════════════════════════════
║ ⏰ OneShot event fired: TERMINATE_EVENT
╠═════════════════════════════════════════════

02-19 10:32:44.869 DEBUG [TerminateEvent$a onChange] 
  ℹ️  TERMINATE_EVENT ignored (MainActivity is still active).
02-19 10:32:47.886 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:41:27.921 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:41:27.923 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:41:32.611 DEBUG [LifecycleManager setHeadless] 
╔═════════════════════════════════════════════
║ ☯️  HeadlessMode? true
╠═════════════════════════════════════════════

02-19 10:41:32.616 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:41:32.634 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 1ms (jobID: -1708771588)
02-19 10:41:32.646 DEBUG [BackgroundGeolocation a] 
  🔴  Cleared callbacks
02-19 10:41:32.652 INFO [BackgroundGeolocation e] 
╔═════════════════════════════════════════════
║ MainActivity was destroyed
╠═════════════════════════════════════════════
╟─ stopOnTerminate: false
╟─ enabled: true

02-19 10:41:33.198 DEBUG [LifecycleManager onPause] ☯️  onPause
02-19 10:41:33.199 DEBUG [LifecycleManager onStop] ☯️  onStop
02-19 10:41:35.566 DEBUG [LifecycleManager onStart] ☯️  onStart
02-19 10:41:35.569 DEBUG [LifecycleManager onResume] ☯️  onResume
02-19 10:41:35.637 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:41:35.639 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:41:35.945 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:41:35.947 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:41:36.010 DEBUG [LocationAuthorization withBackgroundPermission] 
  ℹ️  LocationAuthorization: Permission granted
02-19 10:41:36.013 DEBUG [HttpService startMonitoringConnectivityChanges] 
  🎾  Start monitoring connectivity changes
02-19 10:41:36.013 DEBUG [TSGeofenceManager$d run] 
╔═════════════════════════════════════════════
║ TSGeofenceManager monitoring 0/0
╠═════════════════════════════════════════════
╚═════════════════════════════════════════════
02-19 10:41:36.013 DEBUG [DeviceSettings startMonitoringPowerSaveChanges] 
  🎾  Start monitoring powersave changes
02-19 10:41:36.014 INFO [ActivityRecognitionService d] 
  🎾  Start motion-activity updates
02-19 10:41:36.016 INFO [k c] 
  🔴  Stop heartbeat
02-19 10:41:36.063 DEBUG [SingleLocationRequest trySatisfyLastLocation] 📍  
╟─ age: 279706ms
╟─ maximumAge: 30000
╟─ desiredAccuracy: 20.0
╟─ meetsAccuracy: false
╟─ meetsStaleness: false

02-19 10:41:36.064 DEBUG [LocationAuthorization withPermission] 
  ℹ️  LocationAuthorization: Permission granted
02-19 10:41:36.081 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] LocationRequestService (warm)
02-19 10:41:36.106 DEBUG [AbstractService a] 
  🎾  start [LocationRequestService  startId: 1, eventCount: 1]
02-19 10:41:36.107 INFO [SingleLocationRequest startUpdatingLocation] 
  🔵  [SingleLocationRequest start, action: 1, requestId: 2]
02-19 10:41:36.112 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [LocationRequestService startId: 1, eventCount: 0, sticky: true]
02-19 10:41:36.291 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] LocationRequestService (warm)
02-19 10:41:36.295 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:41:36.296 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:41:36.321 DEBUG [TSLocationManagerActivity a] locationsettings
02-19 10:41:36.366 DEBUG [AbstractService a] 
  🎾  1:2 [LocationRequestService  startId: 2, eventCount: 1]
02-19 10:41:36.366 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] ActivityRecognitionService (warm)
02-19 10:41:36.367 INFO [LocationRequestService b] 
  ℹ️  Location availability: false
02-19 10:41:36.368 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [LocationRequestService startId: 2, eventCount: 0, sticky: true]
02-19 10:41:36.406 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:41:36.409 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:41:36.417 DEBUG [AbstractService a] 
  🎾  start [ActivityRecognitionService  startId: 1, eventCount: 1]
02-19 10:41:36.418 DEBUG [ActivityRecognitionService a] 
  🚘 ️DetectedActivity [type=STILL, confidence=100]
02-19 10:41:36.441 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [ActivityRecognitionService startId: 1, eventCount: 0, sticky: false]
02-19 10:41:36.572 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:41:36.576 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:41:36.580 DEBUG [TSLocationManagerActivity onDestroy] locationsettings
02-19 10:41:36.591 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] ActivityRecognitionService (warm)
02-19 10:41:36.620 DEBUG [AbstractService a] 
  🎾  start [ActivityRecognitionService  startId: 2, eventCount: 1]
02-19 10:41:36.622 INFO [ActivityRecognitionService a] 
╔═════════════════════════════════════════════
║ Motion Transition Result
╠═════════════════════════════════════════════
╟─ 🎾  ENTER: still
╚═════════════════════════════════════════════
02-19 10:41:36.622 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [ActivityRecognitionService startId: 2, eventCount: 0, sticky: false]
02-19 10:41:36.625 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:41:36.626 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:41:37.193 DEBUG [AbstractService f] 
  ⚙️︎  ActivityRecognitionService.stopSelfResult(2): true
02-19 10:41:37.207 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:41:37.208 INFO [TSScheduleManager oneShot] 
  ⏰ Oneshot TERMINATE_EVENT is already pending
02-19 10:41:37.245 DEBUG [AbstractService onDestroy] 
  🔴  ActivityRecognitionService stopped
02-19 10:41:39.130 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] LocationRequestService (warm)
02-19 10:41:39.134 DEBUG [AbstractService a] 
  🎾  1:2 [LocationRequestService  startId: 3, eventCount: 1]
02-19 10:41:39.135 INFO [LocationRequestService b] 
  ℹ️  Location availability: true
02-19 10:41:39.136 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [LocationRequestService startId: 3, eventCount: 0, sticky: true]
02-19 10:41:39.158 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] LocationRequestService (warm)
02-19 10:41:39.160 DEBUG [AbstractService a] 
  🎾  1:2 [LocationRequestService  startId: 4, eventCount: 1]
02-19 10:41:39.161 INFO [TSLocationManager a] 
╔═════════════════════════════════════════════
║ motionchange LocationResult: 2 (2330ms old)
╠═════════════════════════════════════════════
╟─ 📍  Location[fused 28.465016,77.056439 hAcc=14.819 et=+3d15h33m8s203ms alt=226.90000915527344 vAcc=1.0], time: 1771477896831

02-19 10:41:39.162 INFO [Odometer b] 
  ℹ️  Update odometer: 9.33 (± 30.55m)
02-19 10:41:39.162 INFO [TSLocationManager onSingleLocationResult] 
  🔵  MOTIONCHANGE isMoving=false df=10.0 — resetting short-term filter state
02-19 10:41:39.162 INFO [TSLocationManager onSingleLocationResult] 
  🔵  Acquired motionchange position, isMoving: false
02-19 10:41:39.166 DEBUG [AbstractService b] 
  🎾  STOP [LocationRequestService startId: 5, eventCount: 2]
02-19 10:41:39.166 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [LocationRequestService startId: 5, eventCount: 1, sticky: false]
02-19 10:41:39.173 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [LocationRequestService startId: 4, eventCount: 0, sticky: false]
02-19 10:41:39.173 DEBUG [TSGeofenceManager startMonitoringStationaryRegion] 
  🎾  Continue monitoring stationary region (radius: 150m 28.4649917,77.0563753 hAcc=15.722)
02-19 10:41:39.175 DEBUG [FgsLaunchReceiver onReceive] 
  ⚙️ [FgsLaunchReceiver] TrackingService (warm)
02-19 10:41:39.177 DEBUG [AbstractService a] 
  🎾  motionchange [TrackingService  startId: 2, eventCount: 1]
02-19 10:41:39.177 INFO [TrackingService l] 
╔═════════════════════════════════════════════
║ TrackingService motionchange: false
╠═════════════════════════════════════════════

02-19 10:41:39.178 DEBUG [AbstractService a] 
  ⚙️︎  FINISH [TrackingService startId: 2, eventCount: 0, sticky: true]
02-19 10:41:39.379 DEBUG [AbstractService f] 
  ⚙️︎  LocationRequestService.stopSelfResult(5): true
02-19 10:41:39.380 DEBUG [AbstractService onDestroy] 
  🔴  LocationRequestService stopped
02-19 10:41:46.662 INFO [ScheduleEvent a] 
╔═════════════════════════════════════════════
║ ⏰ OneShot event fired: TERMINATE_EVENT
╠═════════════════════════════════════════════

02-19 10:41:46.663 DEBUG [TerminateEvent$a onChange] 
  ℹ️  TERMINATE_EVENT ignored (MainActivity is still active).
02-19 10:41:50.627 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:10.340 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:10.341 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:10.404 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:10.405 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:12.173 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:12.174 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:12.279 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:12.280 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:13.034 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:13.035 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:13.693 DEBUG [LifecycleManager onPause] ☯️  onPause
02-19 10:42:13.828 DEBUG [LifecycleManager onResume] ☯️  onResume
02-19 10:42:13.844 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:13.847 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:13.898 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:13.901 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:14.002 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:14.003 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:14.053 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:14.054 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:14.726 DEBUG [LifecycleManager onPause] ☯️  onPause
02-19 10:42:15.267 DEBUG [LifecycleManager onStop] ☯️  onStop
02-19 10:42:17.758 DEBUG [LifecycleManager onStart] ☯️  onStart
02-19 10:42:17.766 DEBUG [LifecycleManager onResume] ☯️  onResume
02-19 10:42:17.868 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:17.871 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:20.140 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:20.142 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:20.231 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:20.234 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:28.100 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:28.102 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:28.192 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:28.193 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:29.488 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:29.489 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:29.586 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:29.588 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:41.985 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:41.986 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:42.204 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:42.206 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:44.074 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:44.075 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:44.136 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:44.138 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:44.210 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: false
02-19 10:42:44.215 INFO [TSScheduleManager oneShot] 
  ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
02-19 10:42:44.901 DEBUG [LifecycleManager onPause] ☯️  onPause
02-19 10:42:44.911 DEBUG [LifecycleManager onStop] ☯️  onStop
02-19 10:42:46.390 DEBUG [LifecycleManager onStart] ☯️  onStart
02-19 10:42:46.394 DEBUG [LifecycleManager onResume] ☯️  onResume
02-19 10:42:46.475 DEBUG [LifecycleManager c] ☯️ onWindowFocusChanged: true
02-19 10:42:46.476 INFO [TSScheduleManager cancelOneShot] 
  ⏰ Cancel OneShot: TERMINATE_EVENT
02-19 10:42:57.801 INFO [BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions