transistorsoft / flutter_background_geolocation

Sophisticated, battery-conscious background-geolocation & geofencing with motion-detection
https://www.transistorsoft.com/shop/products/flutter-background-geolocation
Other
651 stars 242 forks source link

Geofence radius defaulting to 150? #1290

Closed lloydelvt closed 6 months ago

lloydelvt commented 6 months ago

Your Environment

Expected Behavior

The Geofence should be set to whatever Radius we set.

Actual Behavior

The Radius is being defaulted to 150 if the radius is smaller

Steps to Reproduce

  1. Create a geofence with a radius smaller than 150
  2. check the Geofence radius using (await bg.BackgroundGeolocation.geofences)
christocracy commented 6 months ago

That’s right, the minimum functional radius is 150 meters, imposed by the OS.

lloydelvt commented 6 months ago

Is this a new imposition by the OS?

christocracy commented 6 months ago

No, the OS have always only responded to a minimum radius of 150 meters. It doesn’t matter if you set it to 0, the OS will respond as if you set it to 150.

you cannot have a geofence on either iOS or Android with a radius < 150.

lloydelvt commented 6 months ago

Ok I see thank you Chris

lloydelvt commented 6 months ago

Chris, the family tracking and safety application Life360 applies a 250ft radius (about 76 meters) to their smallest geofence. Do you know why they are able to do this differently form the OS limitation standpoint?

christocracy commented 6 months ago

Both iOS and Android respond only to a minimum geofence radius is 150 meters. Google it.