Skip to content
pubscout

background_locator_2

2.0.6, released 4 years ago by an unverified publisher

Request location updates and send them to a background Dart function even when the app is killed.

Quiet but busy
$ flutter pub add background_locator_2
Source repository

What it does

A Flutter plugin that enables background location tracking and sends updates to a specified Dart function, continuing to work even if the application is killed or terminated by the OS. It provides options for meter filtering, Android notification customization, and restart configuration after device reboots.

AI-written summary of version 2.0.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to track location updates while the app is running in the background or killed.
  • You need to execute background Dart callbacks when a location update occurs.

Skip it when

  • You only need simple foreground-only geolocation without background persistence.
  • You want a fully declarative location-fetching widget.

Strengths

  • Works when the app is killed on supported platforms.
  • Provides meter filtering and platform-specific location options.

Weaknesses

  • Requires complex native setup steps as documented in the wiki.
  • Background execution handling can be prone to platform restrictions.

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
0

Requires following wiki instructions for platform-specific setup on Android and iOS, handling permissions, and handling background execution configurations.

not documented

Alternatives

Packages that do the same job and could replace background_locator_2.

  • geolocator

    A more standard and widely maintained geolocation plugin for Flutter, though background tracking setup varies.

Works with

Packages commonly used together with background_locator_2: ones it builds on, ones built on it, and its own family.