Implement Default and Custom Notification Channels
Default Configuration
On devices running Android Oreo or newer, the SDK creates a notification channel called “marketing” to assign all notifications to. To change the name of the default channel, set a string resource value for mcsdk_default_notification_channel_name
.
After the SDK creates the NotificationChannel, the channel isn’t updated unless your application calls NotificationManager#createDefaultNotificationChannel(Context context, boolean forceRecreate).
Custom Configuration
You can create custom notification channels and assign channels to each notification. See the example code as a guide.
To assign a notification to a channel, override the SDK channel callback. Make sure that you include a channel with your message. Otherwise, the app doesn’t display the message to the recipient.
You can customize channel priority, colors, and sounds. To use custom sounds, give each channel its own sound configuration. You can’t use sounds with the SDK default channel option. For other notification customizations, see the customize notifications documentation.