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

iosSettings: const IosGeofenceSettings(initialTrigger: false) #8

Open
narzullayev0772 opened this issue Dec 27, 2024 · 1 comment
Open

Comments

@narzullayev0772
Copy link

i set initial trigger false, i think that it means when adding geofencing will not notify about it, so i set it false
But when adding geofencing it will notify about it. it happened only ios

    for (final geofence in geofences) {
      await NativeGeofenceManager.instance.removeGeofenceById(geofence.id);
      await NativeGeofenceManager.instance.createGeofence(geofence, geofenceTriggered);
    }
@orkun1675
Copy link
Contributor

You are right, I have observed the same behaviour.

The implementation for this can be seen here:

locationManager.requestState(for: region)

Unfortuantely, iOS still triggers the geofence event at register time, even when state is not requested at registration.

I'll keep this bug open for others to see and might look into fixing this issue in the future.

It is quite low priority for me because plugin users can implement a check on their side to address this.

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

2 participants