Flutter plugin offers Android background location tracking without a licence key
A new open-source Flutter plugin called background_location_free enables location tracking on Android after the user leaves the app. It runs as a foreground service with a configurable visible notification, and it is MIT licensed, requires no licence key, and does not depend on Google Play services. The developer created it because the maintained alternative, flutter_background_geolocation, requires a paid licence for Android release builds, while background_locator_2 has not been updated since 2023. The plugin works with LocationManager providers and includes features such as a native distance and interval filter, a buffer for fixes while no listener is attached, and optional restart after reboot. Installation requires minSdk 21 and compileSdk 34 or newer, and developers must request location and notification permissions themselves, with background location needed only in certain restart scenarios.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in