Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebackground_task

Run Dart code in the background using location updates on Android and iOS.

pub.devRemove
geolocator

Cross-platform plugin to access device GPS, location updates, and coordinate calculations.

pub.devRemove
ScoresHealth6397 (best)
Maintenance5489 (best)
Quality100100
Popularity22100 (best)
Community46100 (best)
Compatibility100100
UsageDownloads (30 days)1323.3M (best)
Likes406.1k (best)
Pub points160 / 160160 / 160
GitHub stars261.3k (best)
MaintenanceLatest release0.4.0, 4 months ago14.1.2, 5 weeks ago (best)
Major versions in 12 months00
Contributors2100+ (best)
Publisherneverjp.combaseflow.com
FitPlatformsAndroid, iOSAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyNoYes
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies0 (best)6
LicenseAPACHE-2.0MIT
Setup effortMediumMedium
JudgementStrengths
  • Uses native location services (significant‑change on iOS, foreground service on Android)
  • Works even when the app is task‑killed (iOS significant‑change, Android foreground service)
  • Simple stream‑based API
  • Comprehensive platform support covering Android, iOS, macOS, Windows, Linux, and Web.
  • Built-in permission handling and location service status queries.
  • Provides both one-off location queries and continuous stream updates.
Weaknesses
  • Limited to location‑based triggers; cannot run arbitrary background tasks
  • Requires many permissions and native setup, impacting battery
  • iOS background execution only while location updates are received
  • Extensive native configuration required, including Info.plist keys, manifest permissions, and background capability settings.
  • Web platform has limitations such as lack of support for last-known position and app settings navigation.
Warnings
  • Native setup
  • Native setup
background_task vs geolocator: which Flutter package should you use? | pubscout