Notification Customization

Showing Multiple Notifications at one go

By default the SDK will update an exiting notification to keep the notification area uncluttered. But you can decide to switch to a mode where the app shows multiple notifications. It can be achieved by
customising the initialising object as shown below

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

By adding the above piece of code, the SDK would show notifications in the following way.

283

Setting Notification Color

Lollipop and above only

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