backgroundlocatorservice 0.0.2
backgroundlocatorservice: ^0.0.2 copied to clipboard
A Flutter package for background location tracking using background_locator_2.
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 #
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
}