Open BugraDemiral opened 1 month ago
How exactly are you testing this? Outside on a real device with real movement or in a simulator?
I'm testing it on my desk connected to Xcode with a physical device.
Test on iOS simulator with location simulated with "Freeway Drive". Or go outside and test with real movement.
https://github.com/user-attachments/assets/0fa2ae45-450f-4401-9254-f9d0ff546be6
This issue is stale because it has been open for 30 days with no activity.
Your Environment
react-native -v
): 0.75.4Expected Behavior
Polygon geofences should trigger onGeofence events with polygon geofences as stated it is fully functional in debug mode.
Actual Behavior
Polygon geofence triggers native didEnterRegion and didExitRegion in native side but not triggering onGeofence event in RN
Steps to Reproduce
Context
Trying to simulate enter/exit to polygon geofence with gpx files on Xcode with real device.
Debug logs
Logs
``` ╔═══════════════════════════════════════════════════════════ ║ -[PolygonGeofencingService isInPolygon:] 📍 41.552363, 2.098692, acy: 5.0m ╚═══════════════════════════════════════════════════════════ ℹ️-[PolygonGeofencingService isInPolygon:] --> polygon test: 0.0% 🔴-[TSGeofenceManager locationManager:didExitRegion:] polygon test ╔═══════════════════════════════════════════════════════════ ║ -[PolygonGeofencingService didExitRegion:] EXIT containing geofence of polygon: polygon test ╚═══════════════════════════════════════════════════════════ 🔴-[PolygonGeofencingService stopMonitoring:] polygon test [Geofencing] clearPolygon polygon test ℹ️-[PolygonGeofencingService persistMonitoredPolygons] { } ℹ️-[PolygonGeofencingService resetStopTimeout] 🔴-[PolygonGeofencingService stopUpdatingLocation] 🎾-[TSGeofenceManager locationManager:didEnterRegion:] polygon test ╔═══════════════════════════════════════════════════════════ ║ -[PolygonGeofencingService didEnterRegion:] ENTER containing geofence of polygon: polygon test ╚═══════════════════════════════════════════════════════════ 🎾-[PolygonGeofencingService startMonitoring:] polygon test [Geofencing] loadPolygon polygon test ℹ️-[PolygonGeofencingService persistMonitoredPolygons] { "polygon test" = 0; } 🎾-[PolygonGeofencingService startUpdatingLocation:] 🎾-[PolygonGeofencingService beginStopTimeout] ℹ️+[LocationAuthorization run:onCancel:] status: 3 ╔═══════════════════════════════════════════════════════════ ║ -[PolygonGeofencingService isInPolygon:] 📍 41.557393, 2.109790, acy: 5.0m ╚═══════════════════════════════════════════════════════════ ℹ️-[PolygonGeofencingService isInPolygon:] --> polygon test: 100.0% ```