getNotificationChannelId

abstract fun getNotificationChannelId(context: Context, notificationMessage: NotificationMessage): String

Return

Existing channel id. Channel must already exist or the notification will not display.

Parameters

context

Application context

notificationMessage

Message being displayed; inspect NotificationMessage.visibility to choose a channel whose lock-screen visibility can honor the requested value. Without a provider, the SDK uses NotificationMessage.channelId when that channel already exists. With a provider, NotificationMessage.channelId is available for inspection and is not automatically selected or validated by the SDK.