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

No longer receive location data on iOS after about 30s in background

Open yonkahlon opened this issue 1 year ago â€ĸ 6 comments

When iOS app is minimized we get location data for a few seconds, but then it stops. We've tried setting up heartbeat with a heartbeat interval, and preventSuspend but never receive the callback

Your Environment

  • Plugin version: 4.14.4
  • Platform: iOS
  • OS version: 17.0.1
  • Device manufacturer / model: iPhone 15 Pro Max Simulator
  • React Native version (react-native -v): 0.72.3
  • Plugin config
await BackgroundGeolocation.ready({
      // Debug
      transistorAuthorizationToken: token,
      reset: true,
      debug: true,
      logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
      // transistorAuthorizationToken: token,
      // Geolocation
      desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
      distanceFilter: 5,
      // stopTimeout: 5,
      // Permissions
      locationAuthorizationRequest: 'Always',
      // HTTP & Persistence
      autoSync: true,
      maxDaysToPersist: 14,
      // Application
      // stopOnTerminate: false,
      // startOnBoot: true,
      enableHeadless: true,
      disableLocationAuthorizationAlert: true,
      disableElasticity: true,
      // disableStopDetection: true,
      pausesLocationUpdatesAutomatically: false,
      disableMotionActivityUpdates: true,
      heartbeatInterval: 60,
      preventSuspend: true,
      stopOnTerminate: false,
      showsBackgroundLocationIndicator: true,
    });

Expected Behavior

We should continuously receive location data even when the app is in the background

Actual Behavior

We receive a few location points, but then it stops.

We do get this log from iOS:

[UIKitCore] Background task still not ended after expiration handlers were called: <_UIBackgroundTaskInfo: 0x6000019d7d00>: taskID = 17,
taskName = Called by wunderpar, from -[BackgroundTaskManager startPreventSuspend:], creationTime = 795249 (elapsed = 25). This app will likely
be terminated by the system. Call UIApplication.endBackgroundTask(_:) to avoid this.

Steps to Reproduce

Context

This is a sports related app and we need regular location data (about 1 per minute is fine)

Debug logs

Logs
2023-11-22 20:24:25.678 ✅-[BackgroundTaskManager createBackgroundTask] 112

2023-11-22 20:24:25.679 ✅-[TSHttpService schedulePost] LOCKED: 533D1068-F25D-42C4-B653-564C8EEDF576

2023-11-22 20:24:26.500 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:26.504 ✅-[TSHttpService post:]_block_invoke DESTROY: 533D1068-F25D-42C4-B653-564C8EEDF576

2023-11-22 20:24:26.504 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:26.504 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 112 OF (
    0,
    112
)

2023-11-22 20:24:27.656 
📍<+37.32756378,-122.02684504> +/- 10.00m (speed 3.83 mps / course 2.98) @ 2023/11/22, 20:24:27 South Africa Standard Time

2023-11-22 20:24:27.656 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 13 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:27.656 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:27.657 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:27.660 đŸ”ĩ-[TSConfig incrementOdometer:] 864.5

2023-11-22 20:24:27.662 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:27.664 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: F3E6EC0B-B980-4582-97E8-490FFED42E94

2023-11-22 20:24:27.664 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:27.667 ✅-[BackgroundTaskManager createBackgroundTask] 113

2023-11-22 20:24:27.668 ✅-[TSHttpService schedulePost] LOCKED: F3E6EC0B-B980-4582-97E8-490FFED42E94

2023-11-22 20:24:28.481 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:28.484 ✅-[TSHttpService post:]_block_invoke DESTROY: F3E6EC0B-B980-4582-97E8-490FFED42E94

2023-11-22 20:24:28.484 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:28.484 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 113 OF (
    0,
    113
)

2023-11-22 20:24:29.666 
📍<+37.32763427,-122.02684373> +/- 10.00m (speed 3.61 mps / course 359.39) @ 2023/11/22, 20:24:29 South Africa Standard Time

2023-11-22 20:24:29.666 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 2 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:29.667 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:29.667 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:29.671 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: A947A044-53B3-43EE-BE94-72BF8BACB570

2023-11-22 20:24:29.671 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:29.673 ✅-[BackgroundTaskManager createBackgroundTask] 114

2023-11-22 20:24:29.675 ✅-[TSHttpService schedulePost] LOCKED: A947A044-53B3-43EE-BE94-72BF8BACB570

2023-11-22 20:24:30.480 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:30.482 ✅-[TSHttpService post:]_block_invoke DESTROY: A947A044-53B3-43EE-BE94-72BF8BACB570

2023-11-22 20:24:30.482 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:30.482 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 114 OF (
    0,
    114
)

2023-11-22 20:24:31.663 
📍<+37.32770974,-122.02684672> +/- 10.00m (speed 3.98 mps / course 0.47) @ 2023/11/22, 20:24:31 South Africa Standard Time

2023-11-22 20:24:31.663 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 6 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:31.663 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:31.663 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:31.667 đŸ”ĩ-[TSConfig incrementOdometer:] 880.7

2023-11-22 20:24:31.668 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:31.673 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: FB38840A-3A84-4C76-8896-1797BAFCC5AE

2023-11-22 20:24:31.673 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:31.677 ✅-[BackgroundTaskManager createBackgroundTask] 118

2023-11-22 20:24:31.678 ✅-[TSHttpService schedulePost] LOCKED: FB38840A-3A84-4C76-8896-1797BAFCC5AE

2023-11-22 20:24:32.472 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:32.473 ✅-[TSHttpService post:]_block_invoke DESTROY: FB38840A-3A84-4C76-8896-1797BAFCC5AE

2023-11-22 20:24:32.474 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:32.474 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 118 OF (
    0,
    118
)

2023-11-22 20:24:32.769 ✅-[BackgroundTaskManager createBackgroundTask] 122

2023-11-22 20:24:32.770 đŸ”ĩ-[TSLocationManager onSuspend:] enabled? 1)

2023-11-22 20:24:32.794 ℹī¸-[TSDBLogger db_save] Log committed

2023-11-22 20:24:33.661 
📍<+37.32778191,-122.02685206> +/- 10.00m (speed 3.31 mps / course 359.20) @ 2023/11/22, 20:24:33 South Africa Standard Time

2023-11-22 20:24:33.661 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 9 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:33.661 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:33.661 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:33.666 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: C84EA60A-EE13-486C-8DD8-9A87307F1EBB

2023-11-22 20:24:33.667 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:33.671 ✅-[BackgroundTaskManager createBackgroundTask] 129

2023-11-22 20:24:33.673 ✅-[TSHttpService schedulePost] LOCKED: C84EA60A-EE13-486C-8DD8-9A87307F1EBB

2023-11-22 20:24:34.772 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:34.782 ✅-[TSHttpService post:]_block_invoke DESTROY: C84EA60A-EE13-486C-8DD8-9A87307F1EBB

2023-11-22 20:24:34.783 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:34.785 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 129 OF (
    0,
    122,
    129
)

2023-11-22 20:24:35.656 
📍<+37.32785729,-122.02685708> +/- 5.00m (speed 3.84 mps / course 353.95) @ 2023/11/22, 20:24:35 South Africa Standard Time

2023-11-22 20:24:35.656 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 12 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:35.656 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:35.656 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:35.661 đŸ”ĩ-[TSConfig incrementOdometer:] 897.1

2023-11-22 20:24:35.663 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:35.667 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 605740CE-59B5-4470-925B-BFB6FF45BD58

2023-11-22 20:24:35.668 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:35.673 ✅-[BackgroundTaskManager createBackgroundTask] 130

2023-11-22 20:24:35.679 ✅-[TSHttpService schedulePost] LOCKED: 605740CE-59B5-4470-925B-BFB6FF45BD58

2023-11-22 20:24:36.194 đŸ”ĩ-[BackgroundTaskManager startPreventSuspendTimer:] BG time remaining: 26 | Total tasks: 1

2023-11-22 20:24:36.767 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:36.773 ✅-[TSHttpService post:]_block_invoke DESTROY: 605740CE-59B5-4470-925B-BFB6FF45BD58

2023-11-22 20:24:36.774 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:36.775 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 130 OF (
    0,
    122,
    130
)

2023-11-22 20:24:37.672 
📍<+37.32793477,-122.02686359> +/- 5.00m (speed 3.90 mps / course 357.51) @ 2023/11/22, 20:24:37 South Africa Standard Time

2023-11-22 20:24:37.672 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 18 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:37.672 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:37.672 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:37.705 đŸ”ĩ-[TSConfig incrementOdometer:] 905.7

2023-11-22 20:24:37.708 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:37.715 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: FE2DC7DF-B2A2-459C-8F54-0EFB6651705F

2023-11-22 20:24:37.715 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:37.723 ✅-[BackgroundTaskManager createBackgroundTask] 131

2023-11-22 20:24:37.726 ✅-[TSHttpService schedulePost] LOCKED: FE2DC7DF-B2A2-459C-8F54-0EFB6651705F

2023-11-22 20:24:38.286 ℹī¸-[TSDBLogger db_delete] maxAge: 604800

2023-11-22 20:24:38.801 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:38.806 ✅-[TSHttpService post:]_block_invoke DESTROY: FE2DC7DF-B2A2-459C-8F54-0EFB6651705F

2023-11-22 20:24:38.807 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:38.807 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 131 OF (
    0,
    122,
    131
)

2023-11-22 20:24:39.671 
📍<+37.32800422,-122.02686157> +/- 5.00m (speed 3.67 mps / course 3.22) @ 2023/11/22, 20:24:39 South Africa Standard Time

2023-11-22 20:24:39.671 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 28 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:39.671 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:39.671 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:39.674 đŸ”ĩ-[TSConfig incrementOdometer:] 913.4

2023-11-22 20:24:39.678 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:39.683 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 9E3856AE-5A3A-4987-AE4D-0A83688F3A44

2023-11-22 20:24:39.683 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:39.687 ✅-[BackgroundTaskManager createBackgroundTask] 132

2023-11-22 20:24:39.689 ✅-[TSHttpService schedulePost] LOCKED: 9E3856AE-5A3A-4987-AE4D-0A83688F3A44

2023-11-22 20:24:40.753 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:40.759 ✅-[TSHttpService post:]_block_invoke DESTROY: 9E3856AE-5A3A-4987-AE4D-0A83688F3A44

2023-11-22 20:24:40.759 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:40.760 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 132 OF (
    0,
    122,
    132
)

2023-11-22 20:24:41.630 
📍<+37.32807512,-122.02685539> +/- 10.00m (speed 4.02 mps / course 0.87) @ 2023/11/22, 20:24:41 South Africa Standard Time

2023-11-22 20:24:41.631 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 5 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:41.631 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:41.631 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:41.636 đŸ”ĩ-[TSConfig incrementOdometer:] 921.3

2023-11-22 20:24:41.641 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:41.646 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 4150D9F8-6971-443A-AA56-8C57C6002733

2023-11-22 20:24:41.646 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:41.697 ✅-[BackgroundTaskManager createBackgroundTask] 133

2023-11-22 20:24:41.700 ✅-[TSHttpService schedulePost] LOCKED: 4150D9F8-6971-443A-AA56-8C57C6002733

2023-11-22 20:24:42.760 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:42.765 ✅-[TSHttpService post:]_block_invoke DESTROY: 4150D9F8-6971-443A-AA56-8C57C6002733

2023-11-22 20:24:42.766 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:42.772 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 133 OF (
    0,
    122,
    133
)

2023-11-22 20:24:43.663 
📍<+37.32814392,-122.02685454> +/- 10.00m (speed 3.71 mps / course 1.42) @ 2023/11/22, 20:24:43 South Africa Standard Time

2023-11-22 20:24:43.663 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 9 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:43.663 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:43.663 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:43.688 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: F85526F2-F114-4B09-AA48-87BB5CE3126C

2023-11-22 20:24:43.688 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:43.690 ✅-[BackgroundTaskManager createBackgroundTask] 134

2023-11-22 20:24:43.691 ✅-[TSHttpService schedulePost] LOCKED: F85526F2-F114-4B09-AA48-87BB5CE3126C

2023-11-22 20:24:44.744 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:44.748 ✅-[TSHttpService post:]_block_invoke DESTROY: F85526F2-F114-4B09-AA48-87BB5CE3126C

2023-11-22 20:24:44.748 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:44.749 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 134 OF (
    0,
    122,
    134
)

2023-11-22 20:24:45.658 
📍<+37.32820836,-122.02685578> +/- 5.00m (speed 3.51 mps / course 359.50) @ 2023/11/22, 20:24:45 South Africa Standard Time

2023-11-22 20:24:45.658 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 7 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:45.658 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:45.659 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:45.662 đŸ”ĩ-[TSConfig incrementOdometer:] 936.1

2023-11-22 20:24:45.664 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:45.668 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: EA88B22B-09ED-48AC-AB63-4C1C079C1B1D

2023-11-22 20:24:45.668 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:45.674 ✅-[BackgroundTaskManager createBackgroundTask] 135

2023-11-22 20:24:45.677 ✅-[TSHttpService schedulePost] LOCKED: EA88B22B-09ED-48AC-AB63-4C1C079C1B1D

2023-11-22 20:24:46.750 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:46.761 ✅-[TSHttpService post:]_block_invoke DESTROY: EA88B22B-09ED-48AC-AB63-4C1C079C1B1D

2023-11-22 20:24:46.761 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:46.762 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 135 OF (
    0,
    122,
    135
)

2023-11-22 20:24:47.655 
📍<+37.32827623,-122.02685779> +/- 5.00m (speed 3.71 mps / course 356.76) @ 2023/11/22, 20:24:47 South Africa Standard Time

2023-11-22 20:24:47.655 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 7 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:47.655 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:24:47.655 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:47.659 đŸ”ĩ-[TSConfig incrementOdometer:] 943.6

2023-11-22 20:24:47.661 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:47.664 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: C78F798C-748B-4F8E-B3B5-6DDCDAE6FC69

2023-11-22 20:24:47.664 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:47.667 ✅-[BackgroundTaskManager createBackgroundTask] 136

2023-11-22 20:24:47.671 ✅-[TSHttpService schedulePost] LOCKED: C78F798C-748B-4F8E-B3B5-6DDCDAE6FC69

2023-11-22 20:24:48.741 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:48.755 ✅-[TSHttpService post:]_block_invoke DESTROY: C78F798C-748B-4F8E-B3B5-6DDCDAE6FC69

2023-11-22 20:24:48.756 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:48.758 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 136 OF (
    0,
    122,
    136
)

2023-11-22 20:24:49.661 
📍<+37.32834322,-122.02686333> +/- 5.00m (speed 3.76 mps / course 352.03) @ 2023/11/22, 20:24:49 South Africa Standard Time

2023-11-22 20:24:49.661 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 9 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:49.661 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:24:49.661 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:49.667 đŸ”ĩ-[TSConfig incrementOdometer:] 951.1

2023-11-22 20:24:49.674 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:49.677 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: F6391BAB-BBE1-4EE8-BD35-34D3F0D30EC3

2023-11-22 20:24:49.677 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:49.679 ✅-[BackgroundTaskManager createBackgroundTask] 137

2023-11-22 20:24:49.682 ✅-[TSHttpService schedulePost] LOCKED: F6391BAB-BBE1-4EE8-BD35-34D3F0D30EC3

2023-11-22 20:24:50.747 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:50.756 ✅-[TSHttpService post:]_block_invoke DESTROY: F6391BAB-BBE1-4EE8-BD35-34D3F0D30EC3

2023-11-22 20:24:50.777 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:50.777 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 137 OF (
    0,
    122,
    137
)

2023-11-22 20:24:51.678 
📍<+37.32841577,-122.02685651> +/- 5.00m (speed 3.76 mps / course 4.66) @ 2023/11/22, 20:24:51 South Africa Standard Time

2023-11-22 20:24:51.678 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 24 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:51.678 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:24:51.678 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:51.683 đŸ”ĩ-[TSConfig incrementOdometer:] 959.2

2023-11-22 20:24:51.686 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:51.691 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 5DEE3075-B5AE-4450-B889-8E312058C02E

2023-11-22 20:24:51.691 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:51.697 ✅-[BackgroundTaskManager createBackgroundTask] 138

2023-11-22 20:24:51.699 ✅-[TSHttpService schedulePost] LOCKED: 5DEE3075-B5AE-4450-B889-8E312058C02E

2023-11-22 20:24:52.860 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:52.896 ✅-[TSHttpService post:]_block_invoke DESTROY: 5DEE3075-B5AE-4450-B889-8E312058C02E

2023-11-22 20:24:52.896 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:52.897 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 138 OF (
    0,
    122,
    138
)

2023-11-22 20:24:53.294 đŸ”ĩ-[BackgroundTaskManager onPreventSuspendTimer:] Prevent-suspend timer fired! (bg time remaining: 9.898766)

2023-11-22 20:24:53.314 ℹī¸+[LocationAuthorization run:onCancel:] status: 3

2023-11-22 20:24:53.682 
📍<+37.32848719,-122.02685389> +/- 10.00m (speed 3.70 mps / course 5.01) @ 2023/11/22, 20:24:53 South Africa Standard Time

2023-11-22 20:24:53.682 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 41 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:53.682 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:24:53.683 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:53.744 đŸ”ĩ-[TSConfig incrementOdometer:] 967.1

2023-11-22 20:24:53.747 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:53.752 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: BE72E3D7-1741-4B98-BD19-1CD022296459

2023-11-22 20:24:53.756 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:53.788 ✅-[BackgroundTaskManager createBackgroundTask] 139

2023-11-22 20:24:53.790 ✅-[TSHttpService schedulePost] LOCKED: BE72E3D7-1741-4B98-BD19-1CD022296459

2023-11-22 20:24:54.902 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:54.906 ✅-[TSHttpService post:]_block_invoke DESTROY: BE72E3D7-1741-4B98-BD19-1CD022296459

2023-11-22 20:24:54.907 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:54.907 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 139 OF (
    0,
    122,
    139
)

2023-11-22 20:24:55.655 
📍<+37.32856216,-122.02685211> +/- 5.00m (speed 3.85 mps / course 0.46) @ 2023/11/22, 20:24:55 South Africa Standard Time

2023-11-22 20:24:55.655 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 12 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:55.655 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:24:55.656 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:55.661 đŸ”ĩ-[TSConfig incrementOdometer:] 975.4

2023-11-22 20:24:55.665 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:55.673 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 841334A4-6D7C-41DC-9F24-AC4E2A419AFD

2023-11-22 20:24:55.673 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:55.679 ✅-[BackgroundTaskManager createBackgroundTask] 140

2023-11-22 20:24:55.682 ✅-[TSHttpService schedulePost] LOCKED: 841334A4-6D7C-41DC-9F24-AC4E2A419AFD

2023-11-22 20:24:56.412 đŸ”ĩ-[BackgroundTaskManager onPreventSuspendTimer:] Prevent-suspend timer fired! (bg time remaining: 6.780667)

2023-11-22 20:24:56.423 ℹī¸+[LocationAuthorization run:onCancel:] status: 3

2023-11-22 20:24:56.729 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:56.739 ✅-[TSHttpService post:]_block_invoke DESTROY: 841334A4-6D7C-41DC-9F24-AC4E2A419AFD

2023-11-22 20:24:56.739 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:56.740 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 140 OF (
    0,
    122,
    140
)

2023-11-22 20:24:57.646 
📍<+37.32863639,-122.02685739> +/- 5.00m (speed 3.80 mps / course 358.35) @ 2023/11/22, 20:24:57 South Africa Standard Time

2023-11-22 20:24:57.646 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 4 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:57.647 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:24:57.647 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:57.651 đŸ”ĩ-[TSConfig incrementOdometer:] 983.7

2023-11-22 20:24:57.655 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:57.661 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 6972A800-AB18-4B77-ADD4-71B6CF07B0DE

2023-11-22 20:24:57.661 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:57.666 ✅-[BackgroundTaskManager createBackgroundTask] 141

2023-11-22 20:24:57.668 ✅-[TSHttpService schedulePost] LOCKED: 6972A800-AB18-4B77-ADD4-71B6CF07B0DE

2023-11-22 20:24:58.775 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:24:58.779 ✅-[TSHttpService post:]_block_invoke DESTROY: 6972A800-AB18-4B77-ADD4-71B6CF07B0DE

2023-11-22 20:24:58.780 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:58.780 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 141 OF (
    0,
    122,
    141
)

2023-11-22 20:24:59.024 ⚠ī¸-[BackgroundTaskManager createBackgroundTask]_block_invoke FORCE KILL BACKGROUND TASK: 122, remaining time: 4.168369

2023-11-22 20:24:59.024 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 122 OF (
    0,
    122
)

2023-11-22 20:24:59.661 
📍<+37.32870864,-122.02685774> +/- 5.00m (speed 3.86 mps / course 356.10) @ 2023/11/22, 20:24:59 South Africa Standard Time

2023-11-22 20:24:59.661 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 7 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:59.661 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:24:59.661 ℹī¸-[TSConfig persist] 

2023-11-22 20:24:59.667 đŸ”ĩ-[TSConfig incrementOdometer:] 991.7

2023-11-22 20:24:59.668 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:24:59.671 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: E582A071-A2E2-4692-A2B2-CBA43A987BF5

2023-11-22 20:24:59.671 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:24:59.675 ✅-[BackgroundTaskManager createBackgroundTask] 142

2023-11-22 20:24:59.677 ✅-[TSHttpService schedulePost] LOCKED: E582A071-A2E2-4692-A2B2-CBA43A987BF5

2023-11-22 20:25:00.479 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:25:00.482 ✅-[TSHttpService post:]_block_invoke DESTROY: E582A071-A2E2-4692-A2B2-CBA43A987BF5

2023-11-22 20:25:00.483 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:25:00.483 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 142 OF (
    0,
    142
)

2023-11-22 20:25:01.670 
📍<+37.32878172,-122.02686242> +/- 10.00m (speed 3.80 mps / course 355.33) @ 2023/11/22, 20:25:01 South Africa Standard Time

2023-11-22 20:25:01.672 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 3 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:25:01.672 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:25:01.672 ℹī¸-[TSConfig persist] 

2023-11-22 20:25:01.676 đŸ”ĩ-[TSConfig incrementOdometer:] 999.8

2023-11-22 20:25:01.678 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:25:01.681 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: AF801E77-90C3-471A-A929-7FBECBE23441

2023-11-22 20:25:01.681 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:25:01.685 ✅-[BackgroundTaskManager createBackgroundTask] 143

2023-11-22 20:25:01.687 ✅-[TSHttpService schedulePost] LOCKED: AF801E77-90C3-471A-A929-7FBECBE23441

2023-11-22 20:25:02.534 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:25:02.539 ✅-[TSHttpService post:]_block_invoke DESTROY: AF801E77-90C3-471A-A929-7FBECBE23441

2023-11-22 20:25:02.539 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:25:02.540 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 143 OF (
    0,
    143
)

2023-11-22 20:25:03.651 
📍<+37.32885356,-122.02686307> +/- 10.00m (speed 3.67 mps / course 2.86) @ 2023/11/22, 20:25:03 South Africa Standard Time

2023-11-22 20:25:03.651 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 7 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:25:03.651 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:25:03.651 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:25:03.655 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: C89ED758-842A-407E-8984-981C84932937

2023-11-22 20:25:03.655 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:25:03.660 ✅-[BackgroundTaskManager createBackgroundTask] 0

2023-11-22 20:25:03.663 ✅-[TSHttpService schedulePost] LOCKED: C89ED758-842A-407E-8984-981C84932937

2023-11-22 20:26:09.039 ℹī¸-[TSDBLogger db_save] Log committed

2023-11-22 20:26:09.058 đŸ”ĩ-[TSLocationManager onResume:] enabled? 1

2023-11-22 20:26:09.061 ⚠ī¸-[HttpResponse handleResponse] HTTP ERROR: 0
***
* The request timed out.
*
{
    NSErrorFailingURLKey = "https://tracker.transistorsoft.com/api/locations";
    NSErrorFailingURLStringKey = "https://tracker.transistorsoft.com/api/locations";
    NSLocalizedDescription = "The request timed out.";
    NSUnderlyingError = "Error Domain=kCFErrorDomainCFNetwork Code=-1001 \"(null)\" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}";
    "_NSURLErrorFailingURLSessionTaskErrorKey" = "LocalDataTask <10A489A1-88D7-4775-9AC1-B28C5A1798F2>.<1>";
    "_NSURLErrorRelatedURLSessionTaskErrorKey" =     (
        "LocalDataTask <10A489A1-88D7-4775-9AC1-B28C5A1798F2>.<1>"
    );
    "_kCFStreamErrorCodeKey" = "-2102";
    "_kCFStreamErrorDomainKey" = 4;
}

2023-11-22 20:26:09.074 ✅-[TSHttpService post:]_block_invoke UNLOCKED: C89ED758-842A-407E-8984-981C84932937

2023-11-22 20:26:09.074 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:09.101 ℹī¸-[LocationDAO purge:] 14

2023-11-22 20:26:09.103 ℹī¸-[TSDBLogger db_save] Log committed

2023-11-22 20:26:09.297 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:09.369 ✅-[BackgroundTaskManager createBackgroundTask] 144

2023-11-22 20:26:09.370 ✅-[TSHttpService schedulePost] LOCKED: C89ED758-842A-407E-8984-981C84932937

2023-11-22 20:26:09.373 
📍<+37.33024447,-122.02807693> +/- 10.00m (speed 3.14 mps / course 303.07) @ 2023/11/22, 20:26:08 South Africa Standard Time

2023-11-22 20:26:09.373 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 723 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:09.373 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:26:09.374 ℹī¸-[TSConfig persist] 

2023-11-22 20:26:09.381 đŸ”ĩ-[TSConfig incrementOdometer:] 1194.6

2023-11-22 20:26:09.411 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:26:09.415 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 861B57B2-B8FD-48F1-9171-4226A23AC203

2023-11-22 20:26:09.513 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:09.513 ⚠ī¸-[TSHttpService flush:] Busy with previous request

2023-11-22 20:26:10.267 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:26:10.269 ✅-[TSHttpService post:]_block_invoke DESTROY: C89ED758-842A-407E-8984-981C84932937

2023-11-22 20:26:10.270 ✅-[TSHttpService schedulePost] LOCKED: 861B57B2-B8FD-48F1-9171-4226A23AC203

2023-11-22 20:26:10.645 
📍<+37.33026362,-122.02813562> +/- 10.00m (speed 2.40 mps / course 298.43) @ 2023/11/22, 20:26:10 South Africa Standard Time

2023-11-22 20:26:10.645 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 5 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:10.645 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:26:10.645 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:26:10.647 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: A22CA572-E916-4E21-B8ED-782C92532974

2023-11-22 20:26:10.648 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:10.648 ⚠ī¸-[TSHttpService flush:] Busy with previous request

2023-11-22 20:26:11.062 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:26:11.063 ✅-[TSHttpService post:]_block_invoke DESTROY: 861B57B2-B8FD-48F1-9171-4226A23AC203

2023-11-22 20:26:11.064 ✅-[TSHttpService schedulePost] LOCKED: A22CA572-E916-4E21-B8ED-782C92532974

2023-11-22 20:26:11.853 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:26:11.857 ✅-[TSHttpService post:]_block_invoke DESTROY: A22CA572-E916-4E21-B8ED-782C92532974

2023-11-22 20:26:11.857 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:11.857 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 144 OF (
    0,
    0,
    144
)

2023-11-22 20:26:12.197 ℹī¸-[TSLocationManager log:message:] [RNBackgroundGeolocation stopObserving]

2023-11-22 20:26:12.666 
📍<+37.33027115,-122.02819394> +/- 5.00m (speed 2.53 mps / course 289.03) @ 2023/11/22, 20:26:12 South Africa Standard Time

2023-11-22 20:26:12.666 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 6 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:12.667 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0

2023-11-22 20:26:12.667 ℹī¸-[TSConfig persist] 

2023-11-22 20:26:12.673 đŸ”ĩ-[TSConfig incrementOdometer:] 1205.4

2023-11-22 20:26:12.674 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:26:12.675 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 15E45FBF-2EEA-4C4A-82AF-2469D3729ACD

2023-11-22 20:26:12.676 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:12.680 ✅-[BackgroundTaskManager createBackgroundTask] 145

2023-11-22 20:26:12.681 ✅-[TSHttpService schedulePost] LOCKED: 15E45FBF-2EEA-4C4A-82AF-2469D3729ACD

2023-11-22 20:26:12.959 ℹī¸-[TSLocationManager removeListeners] 

2023-11-22 20:26:13.464 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:26:13.465 ✅-[TSHttpService post:]_block_invoke DESTROY: 15E45FBF-2EEA-4C4A-82AF-2469D3729ACD

2023-11-22 20:26:13.465 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:13.466 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 145 OF (
    0,
    0,
    145
)

2023-11-22 20:26:14.666 
📍<+37.33027601,-122.02825423> +/- 10.00m (speed 2.56 mps / course 282.98) @ 2023/11/22, 20:26:14 South Africa Standard Time

2023-11-22 20:26:14.666 
╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 5.0m | age: 1 ms
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:14.666 đŸ”ĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.0

2023-11-22 20:26:14.666 ℹī¸-[PolygonGeofencingService setLocation:] Already updating location <IGNORED>

2023-11-22 20:26:14.668 ✅-[TSLocationManager persistLocation:]_block_invoke INSERT: BD6A3E25-9B27-4874-BDA1-C8928E115AC6

2023-11-22 20:26:14.668 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:14.670 ✅-[BackgroundTaskManager createBackgroundTask] 146

2023-11-22 20:26:14.670 ✅-[TSHttpService schedulePost] LOCKED: BD6A3E25-9B27-4874-BDA1-C8928E115AC6

2023-11-22 20:26:15.572 đŸ”ĩ-[HttpResponse handleResponse] Response: 200

2023-11-22 20:26:15.573 ✅-[TSHttpService post:]_block_invoke DESTROY: BD6A3E25-9B27-4874-BDA1-C8928E115AC6

2023-11-22 20:26:15.574 
╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 1
╚═══════════════════════════════════════════════════════════

2023-11-22 20:26:15.574 ✅-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 146 OF (
    0,
    0,
    146
)

yonkahlon avatar Nov 22 '23 19:11 yonkahlon

Go outside and move for at least 1km.

When you move by at least 200 meters, the plug-in starts tracking everywhere you go, regardless if in background.

christocracy avatar Nov 22 '23 19:11 christocracy

PreventSuspend should be avoided. You don't need it.

christocracy avatar Nov 22 '23 19:11 christocracy

Okay cool - will give it a go!

Can we verify this with a simulator, or must it be on a real device?

yonkahlon avatar Nov 22 '23 20:11 yonkahlon

The iOS simulator works great for testing. Simulate movement with "Freeway Drive".

christocracy avatar Nov 22 '23 20:11 christocracy

Did you get this to work @yonkahlon

prabhash-c avatar Feb 08 '24 11:02 prabhash-c

@prabhash-c we did - this is working nicely on iOS for us now.

Maybe this will help - after we start the geolocation library, we set changePace to true and it starts collecting data immediately. If a user is stationary, it won't collect many data points though

await BackgroundGeolocation.start();
await BackgroundGeolocation.changePace(true);

yonkahlon avatar Feb 08 '24 13:02 yonkahlon

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

github-actions[bot] avatar Apr 19 '24 01:04 github-actions[bot]

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

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