flutter_geofence icon indicating copy to clipboard operation
flutter_geofence copied to clipboard

Exit event firing multiple times

Open suraj740 opened this issue 3 years ago • 0 comments

Hi @DwayneCoussement I am listening to multiple coordinates by looping

Geolocation(
        latitude: 11.4708305,
        longitude: 36.800271,
        radius: 200),
        id: 1);

Entry is working fine. But Exit event is firing multiple times, if user has not entered then also sometimes without entry event, exit is firing.

Geofence.startListening(GeolocationEvent.exit, (exit) {
      debugPrint("Exit of a geo region Welcome to: ${exit.id}");
      // NotificationService.showSimpleNotification(
      //     '', "Thank you for visiting: ${entry.id}");
      NotificationService.showSimpleNotification(
          "thank you",
    });

Any help would be appreciated!!

suraj740 avatar Sep 26 '21 20:09 suraj740