enableForegroundNotification

fun enableForegroundNotification(notificationChannelId: String, @StringRes notificationText: Int, @StringRes notificationTitle: Int, @DrawableRes notificationIcon: Int, notificationTarget: PendingIntent): MovementSdk

Deprecated

Please do not use as this is experimental. Contact support if you have any questions

Allow the Movement SDK to use a Foreground service on Android O+ while your user is moving to increase location resolution and timeliness of notifications that you receive. This is required to be called in android.app.Application.onCreate.

Return

MovementSdk instance

Parameters

notificationChannelId

The channel to send the foreground service notification to

notificationText

The text you want to show up on the foreground notification in the tray

notificationIcon

The icon to show in the system notification tray

notificationTarget

The intent to open when a user clicks on the notification