Menu

1 / 5

background_location_free: background location on Android without a licence key

DEV Community: flutter·Abdeldjalil Chougui·14 days ago
#S5Dnz1KC
#devtoflutter#devto#dev#service#android
Long article (1545 words) — no AI summary yet.
Reading 0:00
15s threshold

A running tracker, a delivery app or a trip recorder has one requirement that ordinary location plugins do not meet: the positions must keep coming after the user leaves the app. On Android the supported way to do that is a foreground service with a visible notification, and the rules around it have become stricter with every release.

The README of background_location_free is direct about why it exists. flutter_background_geolocation is maintained, but Android release builds need a paid licence. background_locator_2 has had no release since 2023. This plugin does one job, a location foreground service, and nothing else. It is MIT licensed, needs no licence key, and does not depend on Google Play services.

What it does

A foreground service of type location . It shows a notification you configure: title, text, icon, channel, colour and whether it is ongoing. You can change the title and the text while the service runs.

LocationManager providers only.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.