getValidNotificationChannel

fun getValidNotificationChannel(notificationManager: NotificationManager, notificationExtras: Bundle?): NotificationChannel?

Returns an existing notification channel. The notification extras are first checked for a notification channel that exists. If not, then the default Braze notification channel is returned if it exists. If neither exist on the device, then null is returned.

This method does not create a notification channel if a valid channel cannot be found.

Return

A already created notification channel on the device, or null if one cannot be found.

Parameters

notificationExtras

The extras that will be checked for a valid notification channel id.