{"repo":"Almoullim/background_location","free":true,"listed":false,"github":"https://github.com/Almoullim/background_location","clone":"git clone https://github.com/Almoullim/background_location.git","description":"Flutter background location plugin for Android and iOS","language":"Kotlin","stars":236,"topics":["flutter","dart","dart-package","flutter-package","flutter-plugin","android","ios","kotlin","swift"],"license":null,"category":"mobile-apps","readme_excerpt":"Background Location A Flutter plugin to get location updates in the background for both Android and iOS (Requires iOS 10.0+). Uses CoreLocation for iOS and FusedLocationProvider for Android Getting Started 1: Add this to your pubspec.yaml file: 2: Install packages from the command line: Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more. Configuration For using background location package you need to add permissions to use location service. Add these permission to your platform. iOS Platform Permission in ios/Runner/Info.plist add: Note : You need to describe your purpose for using the permission in to string value. If not, attempts to access the resource fail, and might even cause your app to crash. And when publishing to the App Store, this can cause your app to be rejected by Apple. Refer to Provide a purpose string (Apple Docummentation). Android Platform Permission In android/app/src/main/AndroidManifest.xml add: How to use Import the package where you wanna use it. Request permissions from the user. You can use permission handler for this. Set the notification title, message and icon (Android only) . Use await or .then if you wanna start the location service immediately after because it's an asynchronous method Set the interval between localizations in milliseconds (Android only) . Use await or .then if you wanna start the location service immediately after because it's an asynchronous method Start the location se","default_branch":null,"files":null,"tree":[],"storefront":"/r/Almoullim","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Almoullim/background_location/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}