Closed nusjeff closed 1 week ago
See wiki “Debugging”. Learn to observe the plug-in logs.
The first thing to do when something unexpected happens is use debug: true and observe the plug-in’s incredibly verbose logs.
@christocracy I already did that, I work fine with the normal lat, long
identifier: Home
latitude: property.latitude,
longitude:property.longitude,
radius: radiusJob,
but with the polygon it not trigger
Analyze your polygon shape. Plot the points on a map. The order of vertices matters.
@christocracy this is my polygon, my location is in the center of the polygon as you can see in the picture, but the onGeofence not work, all polygon was add success and already on in onGeofencesChange
Your polygon has 5 vertices. That doesn’t look like any kind of pentagon.
The order of vertices matters. For example, making a square in the SampleApp:
Use your map api to draw a polygon using your vertices.
@christocracy I try using a square like you said, but it still not trigger running
vertices: [
[10.802129317156131, 106.64898325473482],
[10.801897465135191, 106.6522233632248],
[10.798862294898008, 106.65190149814302],
[10.799073071599935, 106.64867211848909],
],
Go outside and walk out of your polygon then walk back in. Use debug: true so you can hear the debug soundFX.
reset: false,
Why are you using this? If you don’t know what it does, don’t use it.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Your Environment
react-native -v
):0.71.11Plugin config