Notification Management

When running an Android application in background, several limits arrow-up-rightapply, which also have impactarrow-up-right on retrieving locations. To circumvent this, an application needs to show a foreground service arrow-up-rightwith a notification visible to the user.

The notification is visible to the user and should therefore be maintained by the host app. For this reason the initialization provides three methods to pass a notificationarrow-up-right:

By providing a Notification.Builder arrow-up-rightyou can freely customize the visible notification. With the notificationId you can even update the notification whenever you need to.

circle-info

Don't forget to create a notification channelarrow-up-right

Example notification

Last updated