update

open fun update(@Nullable notification: Notification)

Update notification displayed by the SDK.

The notification is displayed when foreground running was requested by any application service and must have priority of PRIORITY_LOW or higher and must have a small icon set by e.g. setSmallIcon.

On Oreo and higher you can use the CHANNEL_ID and let the SDK manage the channel for you. If you want/need to use a different notification channel, you will have to create it on your own.

Parameters

notification

Notification to display. If null, the default system notification is used.