background_location_2 0.16.3 copy "background_location_2: ^0.16.3" to clipboard
background_location_2: ^0.16.3 copied to clipboard

A Flutter plugin to get location updates in the background for both Android and iOS. Uses CoreLocation for iOS and FusedLocationProvider for Android. Based on the background_location library by almoullim

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add background_location_2

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  background_location_2: ^0.16.3

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:background_location_2/background_callback.dart';
import 'package:background_location_2/background_location.dart';
6
likes
130
points
328
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to get location updates in the background for both Android and iOS. Uses CoreLocation for iOS and FusedLocationProvider for Android. Based on the background_location library by almoullim

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on background_location_2

Packages that implement background_location_2