BackgroundGeolocationFirebaseConfig class

Configuration

BackgroundFetch.configure(BackgroundFetchConfig(
  minimumFetchInterval: 15,
  stopOnTerminate: false,
  startOnBoot: true,
  enableHeadless: true
), () {
  // This callback is typically fired every 15 minutes while in the background.
  print('[BackgroundFetch] Event received.');
  // IMPORTANT:  You must signal completion of your fetch task or the OS could
  // punish your app for spending much time in the background.
  BackgroundFetch.finish();
})

Constructors

BackgroundGeolocationFirebaseConfig({String? locationsCollection, String? geofencesCollection, bool? updateSingleDocument})

Properties

geofencesCollection String?
The collection name to post geofence events to. Defaults to "geofences".
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
locationsCollection String?
The collection name to post location events to. Defaults to "locations".
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateSingleDocument bool?
Instruct the plugin to update a single document in Firebase rather than creating a new document for each location / geofence.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited