Android offers two location permissions: ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION . The permission you choose determines the accuracy of the location returned by the API. You only need to request one of the Android location permissions, depending on the level of accuracy you need: android.
Read moreCan we get the location in Android apps in the background mode?
In an effort to reduce power consumption, Android 8.0 (API level 26) limits how frequently an app can retrieve the user’s current location while the app is running in the background . Under these conditions, apps can receive location updates only a few times each hour.
Read moreHow do I turn on my location background?
Open your phone’s Settings app. Under “Personal,” tap Location access. At the top of the screen, turn Access to my location on or off .
Read moreHow do I enable background app permissions?
Change permissions based on their type
Read more