Notification Management

When running an Android application in background, several limits apply, which also have impact on retrieving locations. To circumvent this, an application needs to show a foreground service with 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 two methods to pass a notification:

  • Recognition - Whenever the MOVE SDK tries to detect for example activities, trips or even more

  • Trip - When there is an active trip (MoveTripState .Running).

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

Don't forget to create a notification channel

Last updated