Background Locator Service
A Flutter package that provides functionality for recording audio with the ability to pause, resume, and stop the recording. It also includes background notifications to manage the recording state.
Features
✅ Runs location tracking in the background. ✅ Optimized for low power consumption. ✅ Works on Android. ✅ Handles location permissions automatically. ✅ Provides real-time location updates via streams.
Getting Started
UI Example
Usage
Android Setup
Add Permissions
Inside <manifest>:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
Inside <application>:
<service
android:name="com.example.backgroundlocatorservice.LocationService"
android:foregroundServiceType="location"
android:exported="false" />
Location: android/app/build.gradle
compileSdkVersion 34
minSdkVersion 23
defaultConfig {
multiDexEnabled true // Required for large applications
}
License This package is licensed under the Apache License 2.0