background_location_plus 0.0.2 copy "background_location_plus: ^0.0.2" to clipboard
background_location_plus: ^0.0.2 copied to clipboard

Background location tracking plugin (foreground service Android + CoreLocation iOS).

background_location_plus #

Pub Version Likes Popularity Points License

A Flutter plugin for reliable foreground and background location tracking on iOS and Android.
Designed for apps that require precise, continuous geolocation such as delivery, workforce tracking, attendance, trip logging, field services, and more.


โœจ Features #

  • High-accuracy location updates
  • Background location tracking (iOS & Android)
  • Low battery consumption
  • Stream-based API
  • Fully customizable
  • Production-ready
  • Works with minimized, locked, or inactive apps
  • Safe iOS background mode setup included

๐Ÿ“ฆ Installation #

Add to your pubspec.yaml:

dependencies:
  background_location_plus: ^0.0.1

Run #

    flutter pub get

๐Ÿ”ง iOS Setup (Required) #

  1. Add permissions to Info.plist
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Your location is used to track your trips.</string>
    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>Your location is used even in background.</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>Your location is used even when the app is closed.</string>
  1. Enable Background Modes
    Open Xcode โ†’ Runner โ†’ Signing & Capabilities โ†’ + Capability:
    Location updates
    Background processing

๐Ÿ”ง Android Setup (Required) #

Add these permissions inside android/app/src/main/AndroidManifest.xml:

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
<service
    android:name="com.your_package.background_location_plus.LocationService"
    android:foregroundServiceType="location" />

๐Ÿงช Example App #

Check the /example folder for full working code.

๐Ÿ“ Roadmap #

Geofence support
Activity recognition
Custom update intervals
Android foreground notification customization

โค๏ธ Contributing #

Pull requests are welcome.
Please open an issue if you find a bug or require a feature.

๐Ÿ“„ License #

MIT License โ€” see LICENSE file.
1
likes
160
points
152
downloads

Publisher

unverified uploader

Weekly Downloads

Background location tracking plugin (foreground service Android + CoreLocation iOS).

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on background_location_plus

Packages that implement background_location_plus