Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polygon Geofence Events Not Triggering in JavaScript While Circular Geofences Work #2237

Open
nilu2039 opened this issue Dec 27, 2024 · 0 comments

Comments

@nilu2039
Copy link

nilu2039 commented Dec 27, 2024

Description:
When testing geofencing functionality with react-native-background-geolocation, I'm encountering an issue where geofence events are being detected at the native iOS level but are not being propagated to the JavaScript layer.

Environment:

  • react-native-background-geolocation version: 4.18.3
  • React Native version: 0.76.5
  • iOS version: 18.2
  • Device: iPhone 13
  • Xcode version: 16.0

Steps to Reproduce:

  1. Configure Background Geolocation with geofencing enabled
  2. Add a polygon geofence to the monitoring list
  3. Enter the geofenced area
  4. Observe Xcode logs vs JavaScript console

Current Behavior:

  • Circular geofence events are working correctly and triggering JavaScript callbacks
  • Polygon geofence events are detected in native iOS logs:
[PolygonGeofencingService didEnterRegion:] ENTER containing geofence of polygon: 78bdc40a-a5a3-4cae-998f-880f89569725
  • However, polygon geofence events are not received in the JavaScript onGeofence callback
  • This suggests a specific issue with the polygon geofence event bridge, as circular geofences are working as expected

Expected Behavior:
The onGeofence callback in JavaScript should fire when the native iOS layer detects a geofence event, providing details about the entered region.

Code:

const virtualBeaconLocations = useMemo(() => {
  return gameData?.game_beacons.filter((item) => item.virtual_beacon);
}, [gameData]);

useEffect(() => {
  if (!virtualBeaconLocations) return;

  addGeofences(
    virtualBeaconLocations.map((item) => ({
      identifier: item.beacon_id,
      notifyOnExit: true,
      notifyOnEntry: true,
      extras: {
        virtualBeacon: true,
      },
      vertices: [
        [45.518947279987714, -73.6049889209514],
        [45.5182711292279, -73.60338649600598],
        [45.517082240237634, -73.60432670908212],
        [45.51774871402813, -73.60604928622278],
      ],
    }))
  );
}, [virtualBeaconLocations]);

Additional Information:

  • All necessary permissions are properly configured in Info.plist
  • Other events from the plugin (e.g., onLocation) are working correctly
  • The issue appears to be specific to geofence events not bridging from native to JavaScript

Additional Implementation Details:

  • Using React hooks (useMemo and useEffect) to manage geofence setup
  • Geofences are dynamically created based on virtual beacon data from game state
  • Each geofence is configured with both entry and exit notifications
  • Polygon vertices are explicitly defined with latitude/longitude coordinates

Questions:

  1. Are there any additional configuration parameters needed specifically for polygon geofences?
  2. Could there be an issue with the event bridge between native and JavaScript layers?
  3. Are there any known issues with geofence event propagation in the current version?

Debug logs

Logs

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1613/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67632541,+87.70018717> +/- 15.80m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:14:19 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (4924 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67632541,+87.70018717> +/- 15.80m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:14:19 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0
ℹ️-[TSConfig persist]
🔵-[TSConfig incrementOdometer:] 519083602.4
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: E4214A70-6C55-4874-BC80-BA3F353A1134

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1624/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67638651,+87.70019405> +/- 4.05m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:14:31 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (4335 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67638651,+87.70019405> +/- 4.05m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:14:31 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 8C9EC822-F221-4A2E-BCC2-68CDC66385E7

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════
Removing listeners
⚠️-[TSLocationManager log:message:] #ready already called.  Redirecting to #setConfig
ℹ️-[TSConfig persist]
[MiniBall] Circle coordinate: 45.518010, -73.604718, radius: 150.866658
[MiniBall] squared_radius: 0.000002, corrected radius: 150.866658
ℹ️-[TSGeofence initWithIdentifier:radius:latitude:longitude:notifyOnEntry:notifyOnExit:notifyOnDwell:loiteringDelay:extras:vertices:] Calculated polygon containing-geofence: 45.518010, -73.604718, radius: 150.9
🔵-[TSLocationManager addGeofences:success:failure:]
ℹ️-[GeofenceDAO doInsert:geofence:] 78bdc40a-a5a3-4cae-998f-880f89569725
- Location always granted
'- BackgroundGeolocation is configured and ready: ', true

📍<+23.67638651,+87.70019405> +/- 4.05m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:14:31 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🎾-[TSGeofenceManager startMonitoringGeofence:] 78bdc40a-a5a3-4cae-998f-880f89569725

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1635/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67638651,+87.70019405> +/- 4.05m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:14:35 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10952 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 943524BC-44B4-49DF-BBC2-C8EDEE75A92D

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

📍<+45.51894728,-73.60498892> +/- 5.00m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:14:48 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 35 ms
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager locationManager:didUpdateLocations:] stoppedAt is set.  Bailing out
🎾-[TSGeofenceManager locationManager:didEnterRegion:] 78bdc40a-a5a3-4cae-998f-880f89569725

╔═══════════════════════════════════════════════════════════
║ -[PolygonGeofencingService didEnterRegion:] ENTER containing geofence of polygon: 78bdc40a-a5a3-4cae-998f-880f89569725
╚═══════════════════════════════════════════════════════════
🎾-[PolygonGeofencingService startMonitoring:] 78bdc40a-a5a3-4cae-998f-880f89569725
[Geofencing] loadPolygon 78bdc40a-a5a3-4cae-998f-880f89569725
ℹ️-[PolygonGeofencingService persistMonitoredPolygons] {
    "78bdc40a-a5a3-4cae-998f-880f89569725" = 0;
}
🎾-[PolygonGeofencingService startUpdatingLocation:]
ℹ️-[PolygonGeofencingService resetStopTimeout]
🎾-[PolygonGeofencingService beginStopTimeout]
ℹ️+[LocationAuthorization run:onCancel:] status: 3

╔═══════════════════════════════════════════════════════════
║ -[PolygonGeofencingService isInPolygon:] 📍 45.518947, -73.604989, acy: 5.0m
╚═══════════════════════════════════════════════════════════
ℹ️-[PolygonGeofencingService isInPolygon:] --> 78bdc40a-a5a3-4cae-998f-880f89569725: 25.0%
⚠️-[PolygonGeofencingService locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

╔═══════════════════════════════════════════════════════════
║ -[PolygonGeofencingService isInPolygon:] 📍 45.518947, -73.604989, acy: 5.0m
╚═══════════════════════════════════════════════════════════
ℹ️-[PolygonGeofencingService isInPolygon:] --> 78bdc40a-a5a3-4cae-998f-880f89569725: 25.0%

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1646/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+45.51894728,-73.60498892> +/- 5.00m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:14:56 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (937 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+45.51894728,-73.60498892> +/- 5.00m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:14:56 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0
ℹ️-[TSConfig persist]
🔵-[TSConfig incrementOdometer:] 531196207.2
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 19C2366A-1FE0-4199-96BC-13A6F1010E06

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════
ℹ️-[TSDBLogger db_save] Log committed

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1657/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+45.51894728,-73.60498892> +/- 5.00m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:15:07 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (889 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+45.51894728,-73.60498892> +/- 5.00m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:15:07 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: E028A0F3-7935-49A0-ACFE-555C42CB2BF7

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════
nw_connection_add_timestamp_locked_on_nw_queue [C111] Hit maximum timestamp count, will start dropping events

📍<+23.67635481,+87.70016947> +/- 14.00m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:15:15 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager locationManager:didUpdateLocations:] Enabled: 1 | isMoving: 1 | df: 10.0m | age: 55 ms
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager locationManager:didUpdateLocations:] stoppedAt is set.  Bailing out

╔═══════════════════════════════════════════════════════════
║ -[PolygonGeofencingService isInPolygon:] 📍 23.676355, 87.700169, acy: 14.0m
╚═══════════════════════════════════════════════════════════
ℹ️-[PolygonGeofencingService isInPolygon:] --> 78bdc40a-a5a3-4cae-998f-880f89569725: 0.0%
🔴-[TSGeofenceManager locationManager:didExitRegion:] 78bdc40a-a5a3-4cae-998f-880f89569725

╔═══════════════════════════════════════════════════════════
║ -[PolygonGeofencingService didExitRegion:] EXIT containing geofence of polygon: 78bdc40a-a5a3-4cae-998f-880f89569725
╚═══════════════════════════════════════════════════════════
🔴-[PolygonGeofencingService stopMonitoring:] 78bdc40a-a5a3-4cae-998f-880f89569725
[Geofencing] clearPolygon 78bdc40a-a5a3-4cae-998f-880f89569725
ℹ️-[PolygonGeofencingService persistMonitoredPolygons] {
}
ℹ️-[PolygonGeofencingService resetStopTimeout]
🔴-[PolygonGeofencingService stopUpdatingLocation]

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1668/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67634041,+87.70017396> +/- 11.47m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:15:15 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (4299 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0
ℹ️-[TSConfig persist]
🔵-[TSConfig incrementOdometer:] 543308810.1
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 8DD2CA28-8EC7-4112-8A13-A1993180866B

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1679/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67634041,+87.70017396> +/- 11.47m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:15:19 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10946 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67634041,+87.70017396> +/- 11.47m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:15:19 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: EA3CC6A0-5649-4DD1-9D78-ED55C4852E8E

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1690/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67631476,+87.70018196> +/- 18.05m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:15:30 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10961 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67631476,+87.70018196> +/- 18.05m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:15:30 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 3DB08F1C-A8A0-46AF-9B63-234FA0078BAE

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1701/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67631291,+87.70018253> +/- 14.08m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:15:41 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10919 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67631291,+87.70018253> +/- 14.08m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:15:41 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 5.0
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 7892047D-BDA6-4360-8B69-FF884B86BC8B

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1712/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67631229,+87.70018273> +/- 11.51m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:15:52 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10938 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67631229,+87.70018273> +/- 11.51m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:15:52 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 11.5
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: F01759D3-9086-44DB-A942-CD0528D81ACC

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════
ℹ️-[TSDBLogger db_save] Log committed

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1723/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67631196,+87.70018283> +/- 10.12m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:16:03 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10895 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67631196,+87.70018283> +/- 10.12m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:16:03 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 11.5
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 275E08FC-CF1F-42B8-AE9B-BF28735A1D5C

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1734/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67632017,+87.70017583> +/- 8.07m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:16:14 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10379 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67632017,+87.70017583> +/- 8.07m (speed 0.00 mps / course -1.00) @ 27/12/24, 5:16:14 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.1
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: F3AA4031-1DA3-4D54-BFD5-F33BD9F909B1

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════
ℹ️-[TSDBLogger db_delete] maxAge: 604800

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1745/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67631889,+87.70017686> +/- 7.50m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:16:25 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10938 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67631889,+87.70017686> +/- 7.50m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:16:25 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.1
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 0E8330CB-E0B3-4789-88EE-B53DACF33370

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1756/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67631792,+87.70017763> +/- 7.02m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:16:36 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10924 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67631792,+87.70017763> +/- 7.02m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:16:36 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.1
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 72E7462D-10E5-4AF0-90D5-3FB258FFD8CB

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1767/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67631716,+87.70017823> +/- 6.63m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:16:47 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10943 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67631716,+87.70017823> +/- 6.63m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:16:47 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.1
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: A3A5E270-1B44-468C-972D-F92A455AD9E5

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════
ℹ️-[TSDBLogger db_save] Log committed

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1778/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67631656,+87.70017871> +/- 6.29m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:16:58 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10513 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67631656,+87.70017871> +/- 6.29m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:16:58 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.1
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: 09EA143B-8AA9-4303-84B8-DE3A82571F72

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/0 | isMoving: 0
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager createMotionTypeChangedHandler]_block_invoke Shake count: 0
🔵-[TSLocationManager detectStopMotion:shakeCount:] Stationary-time: 1789/2400 s
🔵-[TSLocationManager getCurrentPosition:]
🎾-[LocationManager startUpdatingLocation] ON
ℹ️+[LocationAuthorization run:onCancel:] status: 3

📍<+23.67631487,+87.70018006> +/- 11.04m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:17:09 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (10944 ms old)
╚═══════════════════════════════════════════════════════════
⚠️-[LocationManager locationManager:didFailWithError:] Error Domain=kCLErrorDomain Code=0 "(null)"

📍<+23.67631487,+87.70018006> +/- 11.04m (speed -1.00 mps / course -1.00) @ 27/12/24, 5:17:09 PM India Standard Time

╔═══════════════════════════════════════════════════════════
║ -[TSGeofenceManager evaluateProximity:] Found 1 / 1 within 2000 m
╚═══════════════════════════════════════════════════════════
🔵-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 10.1
🔴-[LocationManager stopUpdatingLocation] OFF
✅-[TSLocationManager persistLocation:]_block_invoke INSERT: FEDDC83E-AF01-432E-B727-81A2880256EF

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService flush:] 
╚═══════════════════════════════════════════════════════════

╔═══════════════════════════════════════════════════════════
║ -[TSHttpService finish:error:] Success: 0
╚═══════════════════════════════════════════════════════════
nw_connection_copy_connected_local_endpoint_block_invoke [C116] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
nw_connection_copy_connected_remote_endpoint_block_invoke [C116] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
nw_connection_copy_protocol_metadata_internal_block_invoke [C116] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
🔵-[TSLocationManager onSuspend:] enabled? 1)
🟢 Posting 'appEntersBackground' event to registered modules
🟢 Posting 'appEntersBackground' event to registered modules
🟢 Posting 'appEntersBackground' event to registered modules
🟢 Posting 'appEntersBackground' event to registered modules
ℹ️-[TSDBLogger db_save] Log committed
[TSBackgroundFetch onAppTerminate]
ℹ️-[TSDBLogger db_save] Log committed
ℹ️-[TSLocationManager removeListeners]
🔵-[TSLocationManager onAppTerminate] stopOnTerminate? 1
🔴-[SOMotionDetector stopShakeDetection] OFF
🔵-[TSLocationManager onAppTerminate] Stopping on terminate

╔═══════════════════════════════════════════════════════════
║ -[TSLocationManager stop] 
╚═══════════════════════════════════════════════════════════
ℹ️-[TSConfig persist]
ℹ️-[TSConfig persist]
ℹ️-[TSLocationManager resetStopTimeoutTimer]
ℹ️-[TSLocationManager clearLastOdometerLocation]
🔴-[TSGeofenceManager stop]
🎾-[TSLocationManager startMonitoringSignificantLocationChanges]
🔴-[TSGeofenceManager stopUpdatingLocation]
🔴-[TSGeofenceManager stopMonitoringGeofences]
🔴-[TSGeofenceManager stopMonitoringGeofences] 78bdc40a-a5a3-4cae-998f-880f89569725
🔴-[PolygonGeofencingService stop]
ℹ️-[PolygonGeofencingService persistMonitoredPolygons] {
}
🔴-[TSLocationManager stopUpdatingLocation]
🔴-[TSLocationManager stopMonitoringBackgroundFetch] BackgroundFetch: OFF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant