OptionalallowsA Boolean value indicating whether the app should receive location updates when suspended. Requires permissions to always access the users location.
OptionalandroidOptionalinterval?: numberThe desired interval for active location updates, in milliseconds.
OptionalmaxWaitTime?: numberSets the maximum wait time in milliseconds for location updates.
If you pass a value at least 2x larger than the interval specified with setInterval(long), then location delivery may be delayed and multiple locations can be delivered at once.
OptionalminWaitTime?: numberExplicitly set the fastest interval for location updates, in milliseconds.
This controls the fastest rate at which your application will receive location updates, which might be faster than interval in some situations (for example, if other applications are triggering location updates).
This allows your application to passively acquire locations at a rate faster than it actively acquires locations, saving power.
Optionalpriority?: AndroidPriorityThe accuracy of the location data.
Optionalprovider?: AndroidProviderThe provider which is used on Android to get the location. Your app must include the Google Play services dependencies to use the playServices location provider. By default it will choose the playServices location provider if it detects that the dependencies are installed, otherwise, it will use the standard Android version which does not require Google Play Services to be installed.
OptionaldistanceThe minimum distance in meters that the device location needs to change before the location update callback in your app is called.
OptionaliosOptionalactivityType?: IosActivityTypeThe type of user activity associated with the location updates.
OptionaldesiredAccuracy?: IosAccuracyThe accuracy of the location data.
OptionalheadingFilter?: numberThe minimum angle in degrees that the device heading needs to change before the heading update callback in your app is called.
OptionalheadingOrientation?: IosHeadingOrientationThe device orientation to use when computing heading values.
OptionalpausesLocationUpdatesAutomatically?: booleanA Boolean value indicating whether the location manager object may pause location updates.
OptionalshowsBackgroundLocationIndicator?: booleanA Boolean indicating whether the status bar changes its appearance when location services are used in the background. Only works on iOS 11+ and is ignored for earlier versions of iOS.
OptionalnotificationInformation regarding the notification to be displayed.
OptionalnotificationImportant if you are doing location-tracking in the background. When location tracking is started in the background, a notification is shown to the user. This notification is important to prevent Android "foreground-service" from dying. When true, it will require notification permission to be granted for Android and iOS.
This configuration is used for location-tracking. It contains platform-specific configurations.
Default