I tried to show 3 notifications in cluster format. According to the document, I added the setGroupSummary (true) property for the first notification. But as a result, I have only two notifications. The notification to which the GroupSummary property is added is not displayed.
NotificationCompat.Builder firstNotification = createNotification(context,"1.Message","Here you go 1"); firstNotification .setGroupSummary(true); firstNotification .setGroup("KEY_NOTIFICATION_GROUP"); NotificationCompat.Builder secondNotifi = createNotification(context,"2.Message","Here you go 2"); secondNotifi .setGroup("KEY_NOTIFICATION_GROUP"); NotificationCompat.Builder thirdNotifi= createNotification(context,"3.Message","Here you go 3"); thirdNotifi.setGroup("KEY_NOTIFICATION_GROUP");
Here's the notification trigger,
notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.notify(0,firstNotification .build()); notificationManager.notify(1,secondNotifi .build()); notificationManager.notify(2,thirdNotifi.build());
And the result: 
I want to show all three notifications in cluster format without gaps.
Any help would be really appreciated.
performance android android-studio notifications
Srinivasan
source share