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 moreWhat is background location permission?
When a feature in your app requests background location on a device that runs Android 10 (API level 29), the system permissions dialog includes an option named Allow all the time . If the user selects this option, the feature in your app gains background location access.
Read more