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.
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:
Setting Notification Color
info |
Note Applicable only for Lollipop and later versions. |
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);