Foreground services are an advanced Android concept which allows you to display notifications to your users when running long lived background tasks . The notification acts like any other notification, however it cannot be removed by the user and lives for the duration of the service.
Read moreHow do you turn on background location on Android?
In order to enable background location access, users must set the Allow all the time option for your app’s location permission on a settings page , as described in the guide on how to Request background location.
Read moreHow do I access location on Android?
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 more