maxMonitoredGeofences property

int? maxMonitoredGeofences
getter/setter pair

The maximum number of geofences to monitor at-a-time, overriding the platform default (iOS: 20; Android 100). NOTE: This option is for specialized use-cases where you wish to monitor LESS THAN the platform maximum. This option should generally not be used.

BackgroundGeolocation.ready(Config(
  maxMonitoredGeofences: 50 // override the Platform maximum (Android: 100)
)).then((State state) {
  BackgroundGeolocation.start();  // <-- plugin will automatically #stop in 30 minutes
});

Implementation

int? maxMonitoredGeofences;