enable Foreground Notification
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
notification Channel Id
The channel to send the foreground service notification to
notification Text
The text you want to show up on the foreground notification in the tray
notification Icon
The icon to show in the system notification tray
notification Target
The intent to open when a user clicks on the notification