flutter_live_location 0.5.0
flutter_live_location: ^0.5.0 copied to clipboard
A Flutter plugin for real-time location tracking with configurable intervals and distance filters. Supports foreground and background tracking on Android and iOS.
0.5.0 — 2026-03-01 #
Features #
- initial release of flutter_live_location
Bug Fixes #
- Distance and time filters fixed
- critical bug fixes
- critical bug fixes
- write pub credentials to both paths and validate JSON structure
- harden pub.dev credentials write and add empty-secret guard
- publish before committing release to prevent false releases
- correct GitHub URLs and README import
0.4.0 — 2026-03-01 #
Features #
- initial release of flutter_live_location
Bug Fixes #
- critical bug fixes
- critical bug fixes
- write pub credentials to both paths and validate JSON structure
- harden pub.dev credentials write and add empty-secret guard
- publish before committing release to prevent false releases
- correct GitHub URLs and README import
0.3.0 — 2026-03-01 #
0.2.0 — 2026-03-01 #
0.0.1 #
Initial release of flutter_live_location.
Features #
- Real-time location updates via a simple broadcast stream — foreground and background.
- Configurable
LocationConfigwith time interval, accuracy level, and background toggle. - Five accuracy levels:
lowest,low,medium,high,best. - Auto-stop timer: tracking stops automatically after the duration passed to
startLocationUpdates. - Last known location cache via
LiveLocation.instance.lastKnownLocation. - Debug-mode logs for tracking start, stop, and permission-denied events.
Android #
- Uses
FusedLocationProviderClientfor battery-efficient location. - Foreground service with a persistent notification for background tracking (Android 8+).
- Handles
ACCESS_BACKGROUND_LOCATION(Android 10+),FOREGROUND_SERVICE_LOCATION(Android 12+), andPOST_NOTIFICATIONS(Android 13+). - WakeLock management to prevent CPU sleep during active tracking.
iOS #
- Uses
CLLocationManagerfor location updates. - Background location mode support with
allowsBackgroundLocationUpdates. - Significant-change mode support for low-power background awareness.
- Retain-cycle-safe delegate via weak references.
Error handling #
Nine typed exceptions: LocationPermissionException,
LocationServiceDisabledException, LocationInitializationException,
LocationAlreadyInitializedException, LocationNotInitializedException,
LocationDisposedException, LocationConfigurationException,
LocationPlatformException, LocationPlatformNotSupportedException.
Platform support #
| Platform | Minimum version |
|---|---|
| Android | API 21 (Android 5.0) |
| iOS | 11.0 |