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

On android device heartbeat event not fires when application is in background or killed.

Open stasmotorny opened this issue 3 years ago • 6 comments

When app is in foreground and device is stationary heartbeat fires with interval, that I set, for ios heartbeat also works good in background, but on android I don't see heartbeat event in background or killed app state.

Your Environment

  • Plugin version: ^4.9.3
  • Platform: Android
  • OS version: Android 13
  • Device manufacturer / model: Pixel 5
  • React Native version (react-native -v): 0.68.2
  • Plugin config
BackgroundGeolocation.ready({
    desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
    distanceFilter: 10,
    heartbeatInterval: 60,
    preventSuspend: true,
    stopTimeout: 1,
    debug: true,
    logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
    stopOnTerminate: false,
    startOnBoot: true,
    enableHeadless: true,
  }).then(state => {
    console.log(
      '- BackgroundGeolocation is configured and ready: ',
      state.enabled
    )
  })
  • Headless task
let HeadlessTask = async (event) => {
  const entityId = useEntity.getState().entityId
  let params = event.params
  console.log('[BackgroundGeolocation HeadlessTask] -', event.name, params)

  switch (event.name) {
    case 'heartbeat':
      // Use await for async tasks
      let location = await getCurrentPosition()
      console.log(
        '[BackgroundGeolocation HeadlessTask] - getCurrentPosition:',
        location
      )
      // useMap.getState().sendCurrentPosition(entityId, location.coords)
      break
  }
}

let getCurrentPosition = () => {
  return new Promise((resolve) => {
    BackgroundGeolocation.getCurrentPosition(
      {
        samples: 1,
        persist: false
      },
      (location) => {
        resolve(location)
      }, (error) => {
        resolve(error)
      })
  })
}
BackgroundGeolocation.registerHeadlessTask(HeadlessTask)

Expected Behavior

I expect that when device is stationary and app state is in background (for ios and android) or killed (for android) heartbeat event will fire and my callback will send location from getCurrentPosition to the backend.

Actual Behavior

On android looks like heartbeat doesn't fire in background and killed state.

Steps to Reproduce

  1. Set library with settings as above.
  2. Start app, start tracking.
  3. Send app in background.
  4. Kill app.

Context

I'm trying to send location every minute not depending on is device stationary or not. For logs I started app, wait for heartbeat fires few times, send app in background, wait for 5 minutes, killed app.

Debug logs

Logs

motorny@Motornys-MacBook-Pro sys-mobile % adb logcat -s TSLocationManager
--------- beginning of main
11-10 19:18:56.893  2168  2634 E TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:18:56.893  2168  2634 E TSLocationManager: ║ LICENSE VALIDATION FAILURE: com.sysreactnativeapp
11-10 19:18:56.893  2168  2634 E TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:18:56.893  2168  2634 E TSLocationManager: ╟─ Failed to find license key in AndroidManifest.  Ensure you've added the key within <application><meta-data android:name="com.transistorsoft.locationmanager.license" android:value="<YOUR LICENSE KEY>" />
11-10 19:18:56.893  2168  2634 E TSLocationManager: ╟─ BackgroundGeolocation is fully functional in DEBUG builds without a license.
11-10 19:18:56.893  2168  2634 E TSLocationManager: ╚═════════════════════════════════════════════
11-10 19:18:56.962  2168  2690 D TSLocationManager: [c.t.l.logger.LoggerFacade$a a] ℹ️   Persist config, dirty: []
11-10 19:18:56.963  2168  2690 D TSLocationManager: [c.t.l.logger.LoggerFacade$a a] ℹ️   Persist config, dirty: [headlessJobService]
11-10 19:20:34.493  2168  3282 D TSLocationManager: [c.t.l.l.TSLocationManager clearLastOdometerLocation] 
11-10 19:20:34.493  2168  3282 D TSLocationManager:   ℹ️  Clear last odometer location
11-10 19:20:34.497  2168  4052 D TSLocationManager: [c.t.l.g.TSGeofenceManager d] ℹ️  Persist monitored geofences: []
11-10 19:20:34.498  2168  4052 D TSLocationManager: [c.t.l.g.TSGeofenceManager f] 
11-10 19:20:34.498  2168  4052 D TSLocationManager:   🔴  Stop monitoring geofences
11-10 19:20:34.499  2168  3282 I TSLocationManager: [c.t.l.s.ActivityRecognitionService stop] 
11-10 19:20:34.499  2168  3282 I TSLocationManager:   🔴  Stop motion-activity updates
11-10 19:20:34.505  2168  3282 I TSLocationManager: [c.t.l.service.HeartbeatService stop] 
11-10 19:20:34.505  2168  3282 I TSLocationManager:   🔴  Stop heartbeat
11-10 19:20:34.507  2168  3282 D TSLocationManager: [c.t.l.http.HttpService stopMonitoringConnectivityChanges] 
11-10 19:20:34.507  2168  3282 D TSLocationManager:   🔴  Stop monitoring connectivity changes
11-10 19:20:54.726  2168  3276 I TSLocationManager: [c.t.locationmanager.util.c g] 
11-10 19:20:54.726  2168  3276 I TSLocationManager:   🔵  LocationAuthorization: Requesting Background permission
11-10 19:20:55.578  2168  2168 D TSLocationManager: [c.t.l.l.LifecycleManager onPause] ☯️  onPause
11-10 19:20:57.796  2168  2168 I TSLocationManager: [c.t.locationmanager.util.c$j onPermissionGranted] 
11-10 19:20:57.796  2168  2168 I TSLocationManager:   ✅  LocationAuthorization: Permission granted
11-10 19:20:57.819  2168  2168 I TSLocationManager: [c.t.locationmanager.util.c e] 
11-10 19:20:57.819  2168  2168 I TSLocationManager:   🔵  Should show backgroundPermissionRationale? true
11-10 19:20:57.829  2168  2168 D TSLocationManager: [c.t.l.l.LifecycleManager onResume] ☯️  onResume
11-10 19:20:58.064  2168  2168 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity execute] android.permission.ACCESS_BACKGROUND_LOCATION
11-10 19:20:59.302  2168  2168 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity stop] eventCount: 0
11-10 19:20:59.487  2168  2168 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity onDestroy] 
11-10 19:21:00.159  2168  2168 D TSLocationManager: [c.t.l.l.LifecycleManager onPause] ☯️  onPause
11-10 19:21:00.196  2168  2168 D TSLocationManager: [c.t.l.l.LifecycleManager onStop] ☯️  onStop
11-10 19:21:02.725  2168  2168 D TSLocationManager: [c.t.l.l.LifecycleManager onStart] ☯️  onStart
11-10 19:21:02.817  2168  2168 I TSLocationManager: [c.t.locationmanager.util.c$j onPermissionGranted] 
11-10 19:21:02.817  2168  2168 I TSLocationManager:   ✅  LocationAuthorization: Permission granted
11-10 19:21:02.819  2168  3282 I TSLocationManager: - Enable: false → true, trackingMode: 1
11-10 19:21:02.821  2168  3282 D TSLocationManager: [c.t.l.http.HttpService startMonitoringConnectivityChanges] 
11-10 19:21:02.821  2168  3282 D TSLocationManager:   🎾  Start monitoring connectivity changes
11-10 19:21:02.823  2168  3282 D TSLocationManager: [c.t.l.device.DeviceSettings startMonitoringPowerSaveChanges] 
11-10 19:21:02.823  2168  3282 D TSLocationManager:   🎾  Start monitoring powersave changes
11-10 19:21:02.826  2168  3282 I TSLocationManager: [c.t.l.service.HeartbeatService start] 
11-10 19:21:02.826  2168  3282 I TSLocationManager:   🎾  Start heartbeat (60s)
11-10 19:21:02.830  2168  3282 D TSLocationManager: [c.t.locationmanager.util.c h] 
11-10 19:21:02.830  2168  3282 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-10 19:21:02.830  2168  3282 I TSLocationManager: [c.t.l.service.TrackingService changePace] 
11-10 19:21:02.830  2168  3282 I TSLocationManager:   🔵  setPace: false → false
11-10 19:21:02.835  2168  2521 D TSLocationManager: [c.t.l.service.TrackingService changePace] 
11-10 19:21:02.835  2168  2521 D TSLocationManager:   ⚠️  Waiting for existing motionchange request #1 to complete
11-10 19:21:02.838  2168  2521 D TSLocationManager: [c.t.locationmanager.util.c h] 
11-10 19:21:02.838  2168  2521 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-10 19:21:02.840  2168  2521 I TSLocationManager: [c.t.l.p.TSProviderManager handleProviderChangeEvent] 
11-10 19:21:02.840  2168  2521 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:02.840  2168  2521 I TSLocationManager: ║ Location-provider change: true
11-10 19:21:02.840  2168  2521 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:02.840  2168  2521 I TSLocationManager: ╟─ GPS: true
11-10 19:21:02.840  2168  2521 I TSLocationManager: ╟─ Network: false
11-10 19:21:02.840  2168  2521 I TSLocationManager: ╟─ AP Mode: false
11-10 19:21:02.842  2168  2521 D TSLocationManager: [c.t.l.http.HttpService a] 
11-10 19:21:02.842  2168  2521 D TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:02.842  2168  2521 D TSLocationManager: ║ 📶  Connectivity change: connected? true
11-10 19:21:02.842  2168  2521 D TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:02.861  2168  2168 D TSLocationManager: [c.t.l.l.LifecycleManager onResume] ☯️  onResume
11-10 19:21:02.879  2168  2168 D TSLocationManager: [c.t.l.s.ForegroundNotification createNotificationChannel] NotificationChannel{mId='com.sysreactnativeappTSLocationManager', 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, mImportanceLockedDefaultApp=false, mOriginalImp=-1000, mParent=null, mConversationId=null, mDemoted=false, mImportantConvo=false}
11-10 19:21:02.891  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:02.891  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:21:02.894  2168  3282 I TSLocationManager: [c.t.l.l.SingleLocationRequest startUpdatingLocation] 
11-10 19:21:02.894  2168  3282 I TSLocationManager:   🔵  [SingleLocationRequest start, action: 1, requestId: 1]
11-10 19:21:02.903  2168  3282 I TSLocationManager: [c.t.l.s.ActivityRecognitionService start] 
11-10 19:21:02.903  2168  3282 I TSLocationManager:   🎾  Start motion-activity updates
11-10 19:21:02.904  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: true]
11-10 19:21:02.914  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:02.914  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:21:02.915  2168  3282 I TSLocationManager: [c.t.l.l.SingleLocationRequest startUpdatingLocation] 
11-10 19:21:02.915  2168  3282 I TSLocationManager:   🔵  [SingleLocationRequest start, action: 3, requestId: 2]
11-10 19:21:02.919  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: true]
11-10 19:21:02.924  2168  2168 I TSLocationManager: [c.t.l.s.TSScheduleManager oneShot] 
11-10 19:21:02.924  2168  2168 I TSLocationManager:   ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
11-10 19:21:03.064  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:03.064  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:21:03.070  2168  3282 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityRecognitionResult] 
11-10 19:21:03.070  2168  3282 D TSLocationManager:   🚘 ️DetectedActivity [type=STILL, confidence=100]
11-10 19:21:03.075  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:21:03.132  2168  2168 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity execute] locationsettings
11-10 19:21:03.132  2168  2168 D TSLocationManager: [c.t.l.adapter.TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
11-10 19:21:03.165  2168  2168 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity execute] locationsettings
11-10 19:21:03.165  2168  2168 D TSLocationManager: [c.t.l.adapter.TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
11-10 19:21:03.170  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:03.170  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:21:03.171  2168  2168 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity stop] eventCount: 1
11-10 19:21:03.174  2168  3282 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] *** wasMoving: false, nowMoving: false, startedMoving: false, justStopped; false
11-10 19:21:03.175  2168  3282 I TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] 
11-10 19:21:03.175  2168  3282 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:03.175  2168  3282 I TSLocationManager: ║ Motion Transition Result
11-10 19:21:03.175  2168  3282 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:03.175  2168  3282 I TSLocationManager: ╟─ 🎾  ENTER: still
11-10 19:21:03.175  2168  3282 I TSLocationManager: ╚═════════════════════════════════════════════
11-10 19:21:03.175  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:21:03.187  2168  2168 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity stop] eventCount: 0
11-10 19:21:03.250  2168  2168 D TSLocationManager: [c.t.l.a.TSLocationManagerActivity onDestroy] 
11-10 19:21:03.453  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:21:03.453  2168  2168 D TSLocationManager:   🔴  ActivityRecognitionService stopped
11-10 19:21:03.916  2168  2168 D TSLocationManager: [c.t.l.l.LifecycleManager onPause] ☯️  onPause
11-10 19:21:04.238  2168  2168 D TSLocationManager: [c.t.l.l.LifecycleManager onResume] ☯️  onResume
11-10 19:21:05.031  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:05.031  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:21:05.034  2168  3282 I TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] 
11-10 19:21:05.034  2168  3282 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:05.034  2168  3282 I TSLocationManager: ║ motionchange LocationResult: 1
11-10 19:21:05.034  2168  3282 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:05.034  2168  3282 I TSLocationManager: ╟─ 📍  Location[fused 50.351338,30.480667 hAcc=17.48 et=+6h22m18s872ms alt=241.1999969482422 vAcc=1.3617479], age: 1945ms, time: 1668100863088
11-10 19:21:05.040  2168  3282 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult] 
11-10 19:21:05.040  2168  3282 I TSLocationManager:   🔵  Acquired motionchange position, isMoving: false
11-10 19:21:05.042  2168  3282 D TSLocationManager: [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 17.48
11-10 19:21:05.044  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:05.044  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 2]
11-10 19:21:05.046  2168  4052 I TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] 
11-10 19:21:05.046  2168  4052 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:05.046  2168  4052 I TSLocationManager: ║ providerchange LocationResult: 2
11-10 19:21:05.046  2168  4052 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:05.046  2168  4052 I TSLocationManager: ╟─ 📍  Location[fused 50.351338,30.480667 hAcc=17.48 et=+6h22m18s872ms alt=241.1999969482422 vAcc=1.3617479], age: 1957ms, time: 1668100863088
11-10 19:21:05.047  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:21:05.050  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:21:05.050  2168  2168 D TSLocationManager:   🔴  LocationRequestService stopped
11-10 19:21:05.117  2168  2168 D TSLocationManager: [c.t.l.g.TSGeofenceManager startMonitoringStationaryRegion] 
11-10 19:21:05.117  2168  2168 D TSLocationManager:   🎾  Start monitoring stationary region (radius: 150.0m 50.3513382,30.4806672 hAcc=17.48)
11-10 19:21:05.117  2168  3282 D TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] SingleLocationRequest 1 isFinished? true
11-10 19:21:05.119  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:21:05.119  2168  4052 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult] 
11-10 19:21:05.119  2168  4052 I TSLocationManager:   🔵  Acquired providerchange position
11-10 19:21:05.120  2168  4052 D TSLocationManager: [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 17.48
11-10 19:21:05.123  2168  4371 I TSLocationManager: [c.t.l.data.sqlite.b persist] 
11-10 19:21:05.123  2168  4371 I TSLocationManager:   ✅  INSERT: 73028644-ea73-44ee-9cee-d24fe10fec62
11-10 19:21:05.144  2168  4052 D TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] SingleLocationRequest 2 isFinished? true
11-10 19:21:05.144  2168  4052 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:21:05.149  2168  3282 I TSLocationManager: [c.t.l.data.sqlite.b persist] 
11-10 19:21:05.149  2168  3282 I TSLocationManager:   ✅  INSERT: 37e074d9-1f86-4547-9d6f-9d90f6289950
11-10 19:21:05.163  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:05.163  2168  2168 D TSLocationManager:   🎾  TrackingService [eventCount: 1]
11-10 19:21:05.164  2168  2168 I TSLocationManager: [c.t.l.service.TrackingService handleMotionChangeResult] 
11-10 19:21:05.164  2168  2168 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:05.164  2168  2168 I TSLocationManager: ║ TrackingService motionchange: false
11-10 19:21:05.164  2168  2168 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:05.181  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
11-10 19:21:05.188  2168  2168 D TSLocationManager: [c.t.l.l.TSLocationManager$b onLocation] 
11-10 19:21:05.188  2168  2168 D TSLocationManager:   ℹ️  Distance from last location: 6283676.5
11-10 19:21:05.189  2168  2168 D TSLocationManager: [c.t.l.g.TSGeofenceManager startMonitoringStationaryRegion] 
11-10 19:21:05.189  2168  2168 D TSLocationManager:   🎾  Start monitoring stationary region (radius: 150.0m 50.3513382,30.4806672 hAcc=17.48)
11-10 19:21:05.448  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:21:05.448  2168  2168 D TSLocationManager:   🔴  TrackingService stopped
11-10 19:21:05.796  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:05.796  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:21:05.799  2168  3282 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] *** wasMoving: false, nowMoving: true, startedMoving: true, justStopped; false
11-10 19:21:05.804  2168  3282 D TSLocationManager: [c.t.l.adapter.TSConfig d] ℹ️   Persist config, dirty: [isMoving]
11-10 19:21:05.814  2168  3282 I TSLocationManager: [c.t.l.service.HeartbeatService stop] 
11-10 19:21:05.814  2168  3282 I TSLocationManager:   🔴  Stop heartbeat
11-10 19:21:05.818  2168  3282 D TSLocationManager: [c.t.l.g.TSGeofenceManager stopMonitoringStationaryRegion] 
11-10 19:21:05.818  2168  3282 D TSLocationManager:   🔴  Stop monitoring stationary region
11-10 19:21:05.828  2168  3282 D TSLocationManager: [c.t.locationmanager.util.c h] 
11-10 19:21:05.828  2168  3282 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-10 19:21:05.829  2168  3282 I TSLocationManager: [c.t.l.service.TrackingService changePace] 
11-10 19:21:05.829  2168  3282 I TSLocationManager:   🔵  setPace: false → true
11-10 19:21:05.830  2168  3282 I TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] 
11-10 19:21:05.830  2168  3282 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:05.830  2168  3282 I TSLocationManager: ║ Motion Transition Result
11-10 19:21:05.830  2168  3282 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:05.830  2168  3282 I TSLocationManager: ╟─ 🔴  EXIT: still
11-10 19:21:05.830  2168  3282 I TSLocationManager: ╟─ 🎾  ENTER: walking
11-10 19:21:05.830  2168  3282 I TSLocationManager: ╚═════════════════════════════════════════════
11-10 19:21:05.830  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:21:05.844  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:05.844  2168  2168 D TSLocationManager:   🎾  TrackingService [eventCount: 1]
11-10 19:21:05.845  2168  2168 I TSLocationManager: [c.t.l.service.TrackingService handleMotionChangeResult] 
11-10 19:21:05.845  2168  2168 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:05.845  2168  2168 I TSLocationManager: ║ TrackingService motionchange: true
11-10 19:21:05.845  2168  2168 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:05.845  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish TrackingService [eventCount: 0, sticky: true]
11-10 19:21:05.873  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:05.873  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:21:05.876  2168  3282 I TSLocationManager: [c.t.l.l.SingleLocationRequest startUpdatingLocation] 
11-10 19:21:05.876  2168  3282 I TSLocationManager:   🔵  [SingleLocationRequest start, action: 1, requestId: 3]
11-10 19:21:05.885  2168  3282 I TSLocationManager: [c.t.l.s.ActivityRecognitionService start] 
11-10 19:21:05.885  2168  3282 I TSLocationManager:   🎾  Start motion-activity updates
11-10 19:21:05.894  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: true]
11-10 19:21:06.064  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:06.064  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:21:06.068  2168  3282 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityRecognitionResult] 
11-10 19:21:06.068  2168  3282 D TSLocationManager:   🚘 ️DetectedActivity [type=STILL, confidence=100]
11-10 19:21:06.072  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:21:06.136  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:06.136  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:21:06.138  2168  3282 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] *** wasMoving: true, nowMoving: true, startedMoving: false, justStopped; false
11-10 19:21:06.139  2168  3282 I TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] 
11-10 19:21:06.139  2168  3282 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:06.139  2168  3282 I TSLocationManager: ║ Motion Transition Result
11-10 19:21:06.139  2168  3282 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:06.139  2168  3282 I TSLocationManager: ╟─ 🎾  ENTER: walking
11-10 19:21:06.139  2168  3282 I TSLocationManager: ╚═════════════════════════════════════════════
11-10 19:21:06.139  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:21:06.405  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:21:06.405  2168  2168 D TSLocationManager:   🔴  ActivityRecognitionService stopped
11-10 19:21:06.991  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:06.991  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:21:06.994  2168  3282 I TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] 
11-10 19:21:06.994  2168  3282 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:06.994  2168  3282 I TSLocationManager: ║ motionchange LocationResult: 3
11-10 19:21:06.994  2168  3282 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:06.994  2168  3282 I TSLocationManager: ╟─ 📍  Location[fused 50.351343,30.480668 hAcc=16.161 et=+6h22m21s8ms alt=241.1999969482422 vAcc=1.4228737 vel=0.074002236], age: 1769ms, time: 1668100865223
11-10 19:21:07.004  2168  3282 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult] 
11-10 19:21:07.004  2168  3282 I TSLocationManager:   🔵  Acquired motionchange position, isMoving: true
11-10 19:21:07.005  2168  3282 D TSLocationManager: [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 17.48
11-10 19:21:07.009  2168  3282 I TSLocationManager: [c.t.l.l.TSLocationManager requestLocationUpdates] 
11-10 19:21:07.009  2168  3282 I TSLocationManager:   🎾  Location-services: ON
11-10 19:21:07.009  2168  3282 D TSLocationManager: [c.t.l.adapter.TSConfig translateDesiredAccuracy] translateDesiredAccuracy (true): -1
11-10 19:21:07.009  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:21:07.010  2168  3282 D TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] SingleLocationRequest 3 isFinished? true
11-10 19:21:07.010  2168  3282 I TSLocationManager: [c.t.l.s.ActivityRecognitionService start] 
11-10 19:21:07.010  2168  3282 I TSLocationManager:   🎾  Start motion-activity updates
11-10 19:21:07.011  2168  4371 I TSLocationManager: [c.t.l.data.sqlite.b persist] 
11-10 19:21:07.011  2168  4371 I TSLocationManager:   ✅  INSERT: 2fa954e0-c426-4daf-8280-389057980ab0
11-10 19:21:07.011  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:21:07.013  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:21:07.013  2168  2168 D TSLocationManager:   🔴  LocationRequestService stopped
11-10 19:21:07.120  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:07.120  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:21:07.121  2168  4371 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityRecognitionResult] 
11-10 19:21:07.121  2168  4371 D TSLocationManager:   🚘 ️DetectedActivity [type=STILL, confidence=100]
11-10 19:21:07.122  2168  4371 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:21:07.198  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:07.198  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:21:07.201  2168  4371 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] *** wasMoving: true, nowMoving: true, startedMoving: false, justStopped; false
11-10 19:21:07.201  2168  4371 I TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] 
11-10 19:21:07.201  2168  4371 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:07.201  2168  4371 I TSLocationManager: ║ Motion Transition Result
11-10 19:21:07.201  2168  4371 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:07.201  2168  4371 I TSLocationManager: ╟─ 🎾  ENTER: walking
11-10 19:21:07.201  2168  4371 I TSLocationManager: ╚═════════════════════════════════════════════
11-10 19:21:07.201  2168  4371 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:21:07.464  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:21:07.464  2168  2168 D TSLocationManager:   🔴  ActivityRecognitionService stopped
11-10 19:21:08.881  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:08.881  2168  2168 D TSLocationManager:   🎾  TrackingService [eventCount: 1]
11-10 19:21:08.883  2168  2168 D TSLocationManager: [c.t.l.service.TrackingService handleLocationResult] 
11-10 19:21:08.883  2168  2168 D TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:08.883  2168  2168 D TSLocationManager: ║ TrackingService: LocationResult
11-10 19:21:08.883  2168  2168 D TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:08.883  2168  2168 D TSLocationManager: ╟─ 📍  Location[fused 50.351345,30.480668 hAcc=14.915 et=+6h22m22s936ms alt=240.89999389648438 vAcc=1.3507142 vel=0.111793265 bear=6.5173025]
11-10 19:21:08.883  2168  2168 D TSLocationManager: ╟─ Age: 1730ms, time: 1668100867151
11-10 19:21:08.883  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish TrackingService [eventCount: 0, sticky: true]
11-10 19:21:08.884  2168  4371 D TSLocationManager: [c.t.l.l.TSLocationManager onLocationResult] 
11-10 19:21:08.884  2168  4371 D TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:08.884  2168  4371 D TSLocationManager: ║ Process LocationResult
11-10 19:21:08.884  2168  4371 D TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:08.884  2168  4371 D TSLocationManager: [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 16.8205
11-10 19:21:08.932  2168  3282 I TSLocationManager: [c.t.l.data.sqlite.b persist] 
11-10 19:21:08.932  2168  3282 I TSLocationManager:   ✅  INSERT: 5683211d-9f35-4086-9cfd-2689be201613
11-10 19:21:12.948  2168  3282 I TSLocationManager: [c.t.l.scheduler.ScheduleEvent onOneShot] 
11-10 19:21:12.948  2168  3282 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:12.948  2168  3282 I TSLocationManager: ║ ⏰ OneShot event fired: TERMINATE_EVENT
11-10 19:21:12.948  2168  3282 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:12.949  2168  3282 D TSLocationManager: [c.t.l.event.TerminateEvent$a a] 
11-10 19:21:12.949  2168  3282 D TSLocationManager:   ℹ️  TERMINATE_EVENT ignored (MainActivity is still active).
11-10 19:21:28.168  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:28.168  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:21:28.169  2168  3282 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] *** wasMoving: true, nowMoving: false, startedMoving: false, justStopped; true
11-10 19:21:28.173  2168  3282 I TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] 
11-10 19:21:28.173  2168  3282 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:28.173  2168  3282 I TSLocationManager: ║ Motion Transition Result
11-10 19:21:28.173  2168  3282 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:28.173  2168  3282 I TSLocationManager: ╟─ 🔴  EXIT: walking
11-10 19:21:28.173  2168  3282 I TSLocationManager: ╟─ 🎾  ENTER: still
11-10 19:21:28.173  2168  3282 I TSLocationManager: ╚═════════════════════════════════════════════
11-10 19:21:28.173  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:21:28.196  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:28.196  2168  2168 D TSLocationManager:   🎾  TrackingService [eventCount: 1]
11-10 19:21:28.221  2168  2168 I TSLocationManager: [c.t.l.s.TSScheduleManager oneShot] 
11-10 19:21:28.221  2168  2168 I TSLocationManager:   ⏰ Scheduled OneShot: STOP_TIMEOUT in 60000ms (jobID: 2059034116)
11-10 19:21:28.225  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish TrackingService [eventCount: 0, sticky: true]
11-10 19:21:28.427  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:21:28.427  2168  2168 D TSLocationManager:   🔴  ActivityRecognitionService stopped
11-10 19:21:31.358  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:31.358  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:21:31.362  2168  3282 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] *** wasMoving: true, nowMoving: true, startedMoving: false, justStopped; false
11-10 19:21:31.362  2168  3282 I TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] 
11-10 19:21:31.362  2168  3282 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:31.362  2168  3282 I TSLocationManager: ║ Motion Transition Result
11-10 19:21:31.362  2168  3282 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:31.362  2168  3282 I TSLocationManager: ╟─ 🔴  EXIT: still
11-10 19:21:31.362  2168  3282 I TSLocationManager: ╟─ 🎾  ENTER: walking
11-10 19:21:31.362  2168  3282 I TSLocationManager: ╚═════════════════════════════════════════════
11-10 19:21:31.362  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:21:31.378  2168  2168 I TSLocationManager: [c.t.l.s.TSScheduleManager cancelOneShot] 
11-10 19:21:31.378  2168  2168 I TSLocationManager:   ⏰ Cancel OneShot: STOP_TIMEOUT
11-10 19:21:31.621  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:21:31.621  2168  2168 D TSLocationManager:   🔴  ActivityRecognitionService stopped
11-10 19:21:34.561  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:34.561  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:21:34.563  2168  3282 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] *** wasMoving: true, nowMoving: false, startedMoving: false, justStopped; true
11-10 19:21:34.569  2168  3282 I TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] 
11-10 19:21:34.569  2168  3282 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:21:34.569  2168  3282 I TSLocationManager: ║ Motion Transition Result
11-10 19:21:34.569  2168  3282 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:21:34.569  2168  3282 I TSLocationManager: ╟─ 🔴  EXIT: walking
11-10 19:21:34.569  2168  3282 I TSLocationManager: ╟─ 🎾  ENTER: still
11-10 19:21:34.569  2168  3282 I TSLocationManager: ╚═════════════════════════════════════════════
11-10 19:21:34.569  2168  3282 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:21:34.584  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:21:34.584  2168  2168 D TSLocationManager:   🎾  TrackingService [eventCount: 1]
11-10 19:21:34.605  2168  2168 I TSLocationManager: [c.t.l.s.TSScheduleManager oneShot] 
11-10 19:21:34.605  2168  2168 I TSLocationManager:   ⏰ Scheduled OneShot: STOP_TIMEOUT in 60000ms (jobID: 2059034116)
11-10 19:21:34.609  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish TrackingService [eventCount: 0, sticky: true]
11-10 19:21:34.822  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:21:34.822  2168  2168 D TSLocationManager:   🔴  ActivityRecognitionService stopped
11-10 19:22:34.626  2168  4666 I TSLocationManager: [c.t.l.scheduler.ScheduleEvent onOneShot] 
11-10 19:22:34.626  2168  4666 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:22:34.626  2168  4666 I TSLocationManager: ║ ⏰ OneShot event fired: STOP_TIMEOUT
11-10 19:22:34.626  2168  4666 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:22:34.632  2168  4666 D TSLocationManager: [c.t.l.adapter.TSConfig d] ℹ️   Persist config, dirty: [isMoving]
11-10 19:22:34.639  2168  4666 I TSLocationManager: [c.t.l.service.HeartbeatService start] 
11-10 19:22:34.639  2168  4666 I TSLocationManager:   🎾  Start heartbeat (60s)
11-10 19:22:34.644  2168  4666 D TSLocationManager: [c.t.locationmanager.util.c h] 
11-10 19:22:34.644  2168  4666 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-10 19:22:34.644  2168  4666 I TSLocationManager: [c.t.l.l.TSLocationManager removeLocationUpdates] 
11-10 19:22:34.644  2168  4666 I TSLocationManager:   🔴  Location-services: OFF
11-10 19:22:34.648  2168  4666 I TSLocationManager: [c.t.l.service.TrackingService changePace] 
11-10 19:22:34.648  2168  4666 I TSLocationManager:   🔵  setPace: true → false
11-10 19:22:34.663  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:22:34.663  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:22:34.663  2168  4666 I TSLocationManager: [c.t.l.l.SingleLocationRequest startUpdatingLocation] 
11-10 19:22:34.663  2168  4666 I TSLocationManager:   🔵  [SingleLocationRequest start, action: 1, requestId: 4]
11-10 19:22:34.665  2168  4666 I TSLocationManager: [c.t.l.s.ActivityRecognitionService start] 
11-10 19:22:34.665  2168  4666 I TSLocationManager:   🎾  Start motion-activity updates
11-10 19:22:34.666  2168  4666 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: true]
11-10 19:22:34.717  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:22:34.717  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:22:34.718  2168  4666 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityRecognitionResult] 
11-10 19:22:34.718  2168  4666 D TSLocationManager:   🚘 ️DetectedActivity [type=STILL, confidence=100]
11-10 19:22:34.720  2168  4666 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:22:34.771  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:22:34.771  2168  2168 D TSLocationManager:   🎾  ActivityRecognitionService [eventCount: 1]
11-10 19:22:34.772  2168  4666 D TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] *** wasMoving: false, nowMoving: false, startedMoving: false, justStopped; false
11-10 19:22:34.772  2168  4666 I TSLocationManager: [c.t.l.s.ActivityRecognitionService handleActivityTransitionResult] 
11-10 19:22:34.772  2168  4666 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:22:34.772  2168  4666 I TSLocationManager: ║ Motion Transition Result
11-10 19:22:34.772  2168  4666 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:22:34.772  2168  4666 I TSLocationManager: ╟─ 🎾  ENTER: still
11-10 19:22:34.772  2168  4666 I TSLocationManager: ╚═════════════════════════════════════════════
11-10 19:22:34.772  2168  4666 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish ActivityRecognitionService [eventCount: 0, sticky: false]
11-10 19:22:35.034  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:22:35.034  2168  2168 D TSLocationManager:   🔴  ActivityRecognitionService stopped
11-10 19:22:35.818  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:22:35.818  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:22:35.821  2168  4666 I TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] 
11-10 19:22:35.821  2168  4666 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:22:35.821  2168  4666 I TSLocationManager: ║ motionchange LocationResult: 4
11-10 19:22:35.821  2168  4666 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:22:35.821  2168  4666 I TSLocationManager: ╟─ 📍  Location[fused 50.351342,30.480668 hAcc=12.542 et=+6h23m51s544ms alt=241.1999969482422 vAcc=3.2738042 vel=0.12814942 sAcc=0.37696153 bear=24.375813], age: 59ms, time: 1668100955316
11-10 19:22:35.836  2168  4666 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult] 
11-10 19:22:35.836  2168  4666 I TSLocationManager:   🔵  Acquired motionchange position, isMoving: false
11-10 19:22:35.836  2168  4666 D TSLocationManager: [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 16.161
11-10 19:22:35.849  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:22:35.853  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:22:35.853  2168  2168 D TSLocationManager:   🔴  LocationRequestService stopped
11-10 19:22:35.886  2168  4666 D TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] SingleLocationRequest 4 isFinished? true
11-10 19:22:35.887  2168  4666 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:22:35.889  2168  4709 I TSLocationManager: [c.t.l.data.sqlite.b persist] 
11-10 19:22:35.889  2168  4709 I TSLocationManager:   ✅  INSERT: 28e51f39-50f2-4d65-a4e1-ba49fdadcb80
11-10 19:22:35.900  2168  2168 D TSLocationManager: [c.t.l.g.TSGeofenceManager startMonitoringStationaryRegion] 
11-10 19:22:35.900  2168  2168 D TSLocationManager:   🎾  Start monitoring stationary region (radius: 150.0m 50.3513419,30.4806682 hAcc=12.542)
11-10 19:22:35.909  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:22:35.909  2168  2168 D TSLocationManager:   🎾  TrackingService [eventCount: 1]
11-10 19:22:35.910  2168  2168 I TSLocationManager: [c.t.l.service.TrackingService handleMotionChangeResult] 
11-10 19:22:35.910  2168  2168 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:22:35.910  2168  2168 I TSLocationManager: ║ TrackingService motionchange: false
11-10 19:22:35.910  2168  2168 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:22:35.917  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish TrackingService [eventCount: 0, sticky: false]
11-10 19:22:36.171  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:22:36.171  2168  2168 D TSLocationManager:   🔴  TrackingService stopped
11-10 19:24:19.667  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:24:19.667  2168  2168 D TSLocationManager:   🎾  HeartbeatService [eventCount: 1]
11-10 19:24:19.668  2168  4859 D TSLocationManager: [c.t.l.s.HeartbeatService$a run] ❤️
11-10 19:24:19.699  2168  4859 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish HeartbeatService [eventCount: 0, sticky: false]
11-10 19:24:19.707  2168  4859 D TSLocationManager: [c.t.locationmanager.util.c h] 
11-10 19:24:19.707  2168  4859 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-10 19:24:19.722  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:24:19.722  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:24:19.727  2168  4859 I TSLocationManager: [c.t.l.l.SingleLocationRequest startUpdatingLocation] 
11-10 19:24:19.727  2168  4859 I TSLocationManager:   🔵  [SingleLocationRequest start, action: 2, requestId: 5]
11-10 19:24:19.729  2168  4859 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: true]
11-10 19:24:19.956  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:24:19.956  2168  2168 D TSLocationManager:   🔴  HeartbeatService stopped
11-10 19:24:21.610  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:24:21.610  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:24:21.613  2168  4859 I TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] 
11-10 19:24:21.613  2168  4859 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:24:21.613  2168  4859 I TSLocationManager: ║ getCurrentPosition LocationResult: 5
11-10 19:24:21.613  2168  4859 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:24:21.613  2168  4859 I TSLocationManager: ╟─ 📍  Location[fused 50.351340,30.480664 hAcc=12.313 et=+6h25m35s625ms alt=241.1999969482422 vAcc=3.0769706], age: 1771ms, time: 1668101059840
11-10 19:24:21.642  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:24:21.645  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:24:21.645  2168  2168 D TSLocationManager:   🔴  LocationRequestService stopped
11-10 19:24:21.651  2168  4859 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult] 
11-10 19:24:21.651  2168  4859 I TSLocationManager:   🔵  Acquired current position
11-10 19:24:21.651  2168  4859 D TSLocationManager: [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 15.538
11-10 19:24:21.657  2168  4859 D TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] SingleLocationRequest 5 isFinished? true
11-10 19:24:21.657  2168  4859 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:24:21.667  2168  4928 I TSLocationManager: [c.t.l.data.sqlite.b persist] 
11-10 19:24:21.667  2168  4928 I TSLocationManager:   ✅  INSERT: d4754760-8b74-41d4-a54a-2c9effd8104f
11-10 19:25:19.670  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:25:19.670  2168  2168 D TSLocationManager:   🎾  HeartbeatService [eventCount: 1]
11-10 19:25:19.671  2168  4928 D TSLocationManager: [c.t.l.s.HeartbeatService$a run] ❤️
11-10 19:25:19.700  2168  4928 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish HeartbeatService [eventCount: 0, sticky: false]
11-10 19:25:19.708  2168  4928 D TSLocationManager: [c.t.locationmanager.util.c h] 
11-10 19:25:19.708  2168  4928 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-10 19:25:19.726  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:25:19.726  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:25:19.727  2168  4928 I TSLocationManager: [c.t.l.l.SingleLocationRequest startUpdatingLocation] 
11-10 19:25:19.727  2168  4928 I TSLocationManager:   🔵  [SingleLocationRequest start, action: 2, requestId: 6]
11-10 19:25:19.729  2168  4928 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: true]
11-10 19:25:19.955  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:25:19.955  2168  2168 D TSLocationManager:   🔴  HeartbeatService stopped
11-10 19:25:21.622  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:25:21.622  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:25:21.625  2168  4928 I TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] 
11-10 19:25:21.625  2168  4928 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:25:21.625  2168  4928 I TSLocationManager: ║ getCurrentPosition LocationResult: 6
11-10 19:25:21.625  2168  4928 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:25:21.625  2168  4928 I TSLocationManager: ╟─ 📍  Location[fused 50.351343,30.480662 hAcc=12.049 et=+6h26m35s642ms alt=241.1999969482422 vAcc=3.008456], age: 1766ms, time: 1668101119858
11-10 19:25:21.652  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:25:21.655  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:25:21.655  2168  2168 D TSLocationManager:   🔴  LocationRequestService stopped
11-10 19:25:21.663  2168  4928 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult] 
11-10 19:25:21.663  2168  4928 I TSLocationManager:   🔵  Acquired current position
11-10 19:25:21.663  2168  4928 D TSLocationManager: [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 14.915
11-10 19:25:21.669  2168  4928 D TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] SingleLocationRequest 6 isFinished? true
11-10 19:25:21.669  2168  4928 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:25:21.673  2168  5137 I TSLocationManager: [c.t.l.data.sqlite.b persist] 
11-10 19:25:21.673  2168  5137 I TSLocationManager:   ✅  INSERT: 20bf82d0-72cb-4a39-9bd8-b46643bf3f8d
11-10 19:26:19.667  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:26:19.667  2168  2168 D TSLocationManager:   🎾  HeartbeatService [eventCount: 1]
11-10 19:26:19.668  2168  5137 D TSLocationManager: [c.t.l.s.HeartbeatService$a run] ❤️
11-10 19:26:19.699  2168  5137 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish HeartbeatService [eventCount: 0, sticky: false]
11-10 19:26:19.708  2168  5137 D TSLocationManager: [c.t.locationmanager.util.c h] 
11-10 19:26:19.708  2168  5137 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-10 19:26:19.723  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:26:19.723  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:26:19.724  2168  5137 I TSLocationManager: [c.t.l.l.SingleLocationRequest startUpdatingLocation] 
11-10 19:26:19.724  2168  5137 I TSLocationManager:   🔵  [SingleLocationRequest start, action: 2, requestId: 7]
11-10 19:26:19.727  2168  5137 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: true]
11-10 19:26:19.953  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:26:19.953  2168  2168 D TSLocationManager:   🔴  HeartbeatService stopped
11-10 19:26:21.656  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:26:21.656  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:26:21.660  2168  5137 I TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] 
11-10 19:26:21.660  2168  5137 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:26:21.660  2168  5137 I TSLocationManager: ║ getCurrentPosition LocationResult: 7
11-10 19:26:21.660  2168  5137 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:26:21.660  2168  5137 I TSLocationManager: ╟─ 📍  Location[fused 50.351337,30.480667 hAcc=13.577 et=+6h27m35s593ms alt=241.1999969482422 vAcc=2.9063072], age: 1850ms, time: 1668101179808
11-10 19:26:21.671  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:26:21.696  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:26:21.696  2168  2168 D TSLocationManager:   🔴  LocationRequestService stopped
11-10 19:26:21.708  2168  5137 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult] 
11-10 19:26:21.708  2168  5137 I TSLocationManager:   🔵  Acquired current position
11-10 19:26:21.708  2168  5137 D TSLocationManager: [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 14.246
11-10 19:26:21.712  2168  5137 D TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] SingleLocationRequest 7 isFinished? true
11-10 19:26:21.712  2168  5137 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:26:21.717  2168  5296 I TSLocationManager: [c.t.l.data.sqlite.b persist] 
11-10 19:26:21.717  2168  5296 I TSLocationManager:   ✅  INSERT: c21b22ee-f505-465b-a789-2e78be404297
11-10 19:26:30.510  2168  2168 I TSLocationManager: [c.t.l.s.TSScheduleManager oneShot] 
11-10 19:26:30.510  2168  2168 I TSLocationManager:   ⏰ Scheduled OneShot: TERMINATE_EVENT in 10000ms (jobID: -1708771588)
11-10 19:26:31.221  2168  2168 D TSLocationManager: [c.t.l.l.LifecycleManager onPause] ☯️  onPause
11-10 19:26:31.225  2168  2168 D TSLocationManager: [c.t.l.l.LifecycleManager onStop] ☯️  onStop
11-10 19:26:40.539  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:26:40.539  2168  2168 D TSLocationManager:   🎾  HeartbeatService [eventCount: 1]
11-10 19:26:40.539  2168  5296 D TSLocationManager: [c.t.l.s.HeartbeatService$a run] ❤️
11-10 19:26:40.543  2168  5137 I TSLocationManager: [c.t.l.scheduler.ScheduleEvent onOneShot] 
11-10 19:26:40.543  2168  5137 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:26:40.543  2168  5137 I TSLocationManager: ║ ⏰ OneShot event fired: TERMINATE_EVENT
11-10 19:26:40.543  2168  5137 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:26:40.544  2168  5137 D TSLocationManager: [c.t.l.event.TerminateEvent$a a] 
11-10 19:26:40.544  2168  5137 D TSLocationManager:   ℹ️  TERMINATE_EVENT ignored (MainActivity is still active).
11-10 19:26:40.573  2168  5296 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish HeartbeatService [eventCount: 0, sticky: false]
11-10 19:26:40.602  2168  5296 D TSLocationManager: [c.t.locationmanager.util.c h] 
11-10 19:26:40.602  2168  5296 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-10 19:26:40.622  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:26:40.622  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:26:40.623  2168  5296 I TSLocationManager: [c.t.l.l.SingleLocationRequest startUpdatingLocation] 
11-10 19:26:40.623  2168  5296 I TSLocationManager:   🔵  [SingleLocationRequest start, action: 2, requestId: 8]
11-10 19:26:40.625  2168  5296 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: true]
11-10 19:26:40.828  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:26:40.828  2168  2168 D TSLocationManager:   🔴  HeartbeatService stopped
11-10 19:26:42.561  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService start] 
11-10 19:26:42.561  2168  2168 D TSLocationManager:   🎾  LocationRequestService [eventCount: 1]
11-10 19:26:42.564  2168  5296 I TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] 
11-10 19:26:42.564  2168  5296 I TSLocationManager: ╔═════════════════════════════════════════════
11-10 19:26:42.564  2168  5296 I TSLocationManager: ║ getCurrentPosition LocationResult: 8
11-10 19:26:42.564  2168  5296 I TSLocationManager: ╠═════════════════════════════════════════════
11-10 19:26:42.564  2168  5296 I TSLocationManager: ╟─ 📍  Location[fused 50.351344,30.480664 hAcc=20.0 et=+6h27m56s540ms alt=241.1999969482422 vAcc=2.8935006], age: 1807ms, time: 1668101200756
11-10 19:26:42.574  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]
11-10 19:26:42.578  2168  2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy] 
11-10 19:26:42.578  2168  2168 D TSLocationManager:   🔴  LocationRequestService stopped
11-10 19:26:42.634  2168  5296 I TSLocationManager: [c.t.l.l.TSLocationManager onSingleLocationResult] 
11-10 19:26:42.634  2168  5296 I TSLocationManager:   🔵  Acquired current position
11-10 19:26:42.635  2168  5296 D TSLocationManager: [c.t.l.l.TSLocationManager calculateMedianAccuracy] Median accuracy: 14.915
11-10 19:26:42.650  2168  5137 I TSLocationManager: [c.t.l.data.sqlite.b persist] 
11-10 19:26:42.650  2168  5137 I TSLocationManager:   ✅  INSERT: 4f8a3c88-1f22-4dc8-974c-fd3a70d24ae7
11-10 19:26:42.651  2168  5296 D TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult] SingleLocationRequest 8 isFinished? true
11-10 19:26:42.652  2168  5296 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎  finish LocationRequestService [eventCount: 0, sticky: false]


stasmotorny avatar Nov 10 '22 17:11 stasmotorny

11-10 19:24:19.668 2168 4859 D TSLocationManager: [c.t.l.s.HeartbeatService$a run] ❤️

11-10 19:24:19.707 2168 4859 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted

11-10 19:24:19.722 2168 2168 D TSLocationManager: [c.t.l.service.AbstractService start]

11-10 19:24:19.722 2168 2168 D TSLocationManager: 🎾 LocationRequestService [eventCount: 1]

11-10 19:24:19.727 2168 4859 I TSLocationManager: [c.t.l.l.SingleLocationRequest startUpdatingLocation]

11-10 19:24:19.727 2168 4859 I TSLocationManager: 🔵 [SingleLocationRequest start, action: 2, requestId: 5]

11-10 19:24:19.729 2168 4859 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true]

11-10 19:24:19.956 2168 2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy]

11-10 19:24:19.956 2168 2168 D TSLocationManager: 🔴 HeartbeatService stopped

11-10 19:24:21.610 2168 2168 D TSLocationManager: [c.t.l.service.AbstractService start]

11-10 19:24:21.610 2168 2168 D TSLocationManager: 🎾 LocationRequestService [eventCount: 1]

11-10 19:24:21.613 2168 4859 I TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult]

11-10 19:24:21.613 2168 4859 I TSLocationManager: ╔═════════════════════════════════════════════

11-10 19:24:21.613 2168 4859 I TSLocationManager: ║ getCurrentPosition LocationResult: 5

11-10 19:24:21.613 2168 4859 I TSLocationManager: ╠═════════════════════════════════════════════

11-10 19:24:21.613 2168 4859 I TSLocationManager: ╟─ 📍 Location[fused 50.351340,30.480664 hAcc=12.313 et=+6h25m35s625ms alt=241.1999969482422 vAcc=3.0769706], age: 1771ms, time: 1668101059840

christocracy avatar Nov 10 '22 17:11 christocracy

11-10 19:24:19.668 2168 4859 D TSLocationManager: [c.t.l.s.HeartbeatService$a run] ❤️

11-10 19:24:19.707 2168 4859 D TSLocationManager: ℹ️ LocationAuthorization: Permission granted

11-10 19:24:19.722 2168 2168 D TSLocationManager: [c.t.l.service.AbstractService start]

11-10 19:24:19.722 2168 2168 D TSLocationManager: 🎾 LocationRequestService [eventCount: 1]

11-10 19:24:19.727 2168 4859 I TSLocationManager: [c.t.l.l.SingleLocationRequest startUpdatingLocation]

11-10 19:24:19.727 2168 4859 I TSLocationManager: 🔵 [SingleLocationRequest start, action: 2, requestId: 5]

11-10 19:24:19.729 2168 4859 D TSLocationManager: [c.t.l.service.AbstractService finish] ⚙️︎ finish LocationRequestService [eventCount: 0, sticky: true]

11-10 19:24:19.956 2168 2168 D TSLocationManager: [c.t.l.service.AbstractService onDestroy]

11-10 19:24:19.956 2168 2168 D TSLocationManager: 🔴 HeartbeatService stopped

11-10 19:24:21.610 2168 2168 D TSLocationManager: [c.t.l.service.AbstractService start]

11-10 19:24:21.610 2168 2168 D TSLocationManager: 🎾 LocationRequestService [eventCount: 1]

11-10 19:24:21.613 2168 4859 I TSLocationManager: [c.t.l.s.LocationRequestService handleLocationResult]

11-10 19:24:21.613 2168 4859 I TSLocationManager: ╔═════════════════════════════════════════════

11-10 19:24:21.613 2168 4859 I TSLocationManager: ║ getCurrentPosition LocationResult: 5

11-10 19:24:21.613 2168 4859 I TSLocationManager: ╠═════════════════════════════════════════════

11-10 19:24:21.613 2168 4859 I TSLocationManager: ╟─ 📍 Location[fused 50.351340,30.480664 hAcc=12.313 et=+6h25m35s625ms alt=241.1999969482422 vAcc=3.0769706], age: 1771ms, time: 1668101059840

You want to show that Heartbeat event fires? Then yes, it fires, but it fires only in foreground for android. I send app in background at 19:26. After that I wait for 5 minutes and closed app. Wait for another 5 minutes, nothing new appears in log. All this time phone was stationary. Or I didn't get your point?

stasmotorny avatar Nov 10 '22 18:11 stasmotorny

With app in background, observe this:

$ adb logcat *:S TSLocationManager:V ActivityManager:V

christocracy avatar Nov 10 '22 18:11 christocracy

adb logcat *:S TSLocationManager:V ActivityManager:V

For this command I got "zsh: no matches found: *:S", so I tried it like this "adb logcat TSLocationManager:V ActivityManager:V" and like this "adb logcat", but never saw new notes about heartbeat. Just for test I shake phone in my hand for some time and in metro console i got [BackgroundGeolocation HeadlessTask] - location {"activity": {"confidence": 100, "type": "still"}, "battery": {"is_charging": true, "level": 0.55}, "coords": {"accuracy": 67.8, "altitude": 241.2, "altitude_accuracy": 1.6, "ellipsoidal_altitude": 241.2, "heading": -1, "heading_accuracy": -1, "latitude": 50.3513929, "longitude": 30.4807839, "speed": 0.04, "speed_accuracy": -1}, "extras": {}, "is_moving": true, "odometer": 0, "timestamp": "2022-11-10T18:34:47.000Z", "uuid": "3848247f-9e65-40d0-ac6c-09d94847d6f3"} After I stop shaking phone all console messages also were stoped and again heartbeat event didn't fire. So headless works, but it never got heartbeat event. Do you have any idea what am I doing wrong? Or heartBeat doesn't fire in background and killed state for android?

stasmotorny avatar Nov 10 '22 18:11 stasmotorny

Use background-fetch for repeating tasks instead of heartbeat. The plug-in’s heartbeat mechanism isn’t allowed to start a foreground-service due to new Foreground Launch Restrictions in Android 13.

christocracy avatar Nov 10 '22 18:11 christocracy

Use background-fetch for repeating tasks instead of heartbeat. The plug-in’s heartbeat mechanism isn’t allowed to start a foreground-service due to new Foreground Launch Restrictions in Android 13.

Got it. Thank you for quick and detailed answer.

stasmotorny avatar Nov 11 '22 08:11 stasmotorny

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

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

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

github-actions[bot] avatar Jun 19 '24 01:06 github-actions[bot]