Notification Customisation 11.x.x
Follow

Show Multiple Notifications

The SDK updates existing notifications to keep the notification area uncluttered. You can switch modes where the app shows multiple notifications. Multiple notifications is achieved by customizing the initializing object as described.

Java
MoEngage moEngage =
        new MoEngage.Builder(this, "XXXXXXXXXX")
            .setSenderId("xxxxxxx")
            .setNotificationSmallIcon(R.drawable.icon)
            .setNotificationLargeIcon(R.drawable.ic_launcher)
            .enableMultipleNotificationInDrawer()
            .build();
    MoEngage.initialise(moEngage);

The SDK displays as described:

85203bc-notificationTypeMultiple.png

Setting Notification Color

 

Lollipop and later versions only.

Java
MoEngage moEngage =
        new MoEngage.Builder(this, "XXXXXXXXXX")
            .setSenderId("xxxxxxx")
            .setNotificationSmallIcon(R.drawable.icon)
            .setNotificationLargeIcon(R.drawable.ic_launcher)
            .enableMultipleNotificationInDrawer()
            .setNotificationColor(R.color.colorAccent)
            .build();
    MoEngage.initialise(moEngage);

 

Was this article helpful?
0 out of 0 found this helpful