The Background Geolocation SDK implements the native iOS and Android Geofencing APIs.
When in Usewill not work.
Adding a single geofence with addGeofence.
Arbitrary key-values appended to the geofence event and posted to your configured Config.url.
Unique geofence identifier.
Latitude of geofence center
Minimum time in milliseconds the device must "loiter" within this geofence before notifyOnDwell event fires.
Longitude of geofence center.
true to fire event when device "loiters" within this geofence for loiteringDelay milliseconds.
true to fire event when device enters this geofence.
ℹ️ See also:
true to fire event when device exits this geofence.
Radius of the circular geofence.
⚠️ The minimum reliable
200 meters. Anything less will likely not cause a geofence to trigger. This is documented by Apple here:
"The specific threshold distances are determined by the hardware and the location technologies that are currently available. For example, if Wi-Fi is disabled, region monitoring is significantly less accurate. However, for testing purposes, you can assume that the minimum distance is approximately 200 meters".
Generated using TypeDoc