Notification Customisation 11.x.x

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

info

Note

Applicable only for Lollipop and later versions.

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);

 

Previous

Next

Was this article helpful?
3 out of 4 found this helpful

How can we improve this article?