Marketing Cloud SDK / com.salesforce.marketingcloud.notifications / NotificationManager / NotificationChannelIdProvider

NotificationChannelIdProvider

interface NotificationChannelIdProvider

Provide your NotificationChannelIdProvider in the NotificationCustomizationOptions when initializing the SDK via com.salesforce.marketingcloud.MarketingCloudConfig.Builder#setNotificationCustomizationOptions(NotificationCustomizationOptions).

Functions

getNotificationChannelId

Provide the notification channel id to be used for the notificationMessage. Providing null or an id for a channel that does not exist will result in Android not showing the notification.

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