Starting from Android 10 you need to add the ACCESS_BACKGROUND_LOCATION permission (next to the ACCESS_COARSE_LOCATION or the ACCESS_FINE_LOCATION permission) if you want to continue receiving updates even when your App is running in the background (note that the geolocator plugin doesn't support receiving and processing location updates while running in the background): To do so open the AndroidManifest.xml file (located under android/app/src/main) and add one of the following two lines as direct children of the tag (when you configure both permissions the ACCESS_FINE_LOCATION will be used by the geolocator plugin): On Android you'll need to add either the ACCESS_COARSE_LOCATION or the ACCESS_FINE_LOCATION permission to your Android Manifest. dependencies to their AndroidX counterparts (a full list can be found here: Migrating to AndroidX).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |