Benachrichtigung mit setGroupSummary (true) ist in Android N nicht sichtbar

Versucht, 3 Benachrichtigungen im Cluster-Format anzuzeigen. Gemäß dem Dokument habe ich die Eigenschaft setGroupSummary (true) für die erste Benachrichtigung hinzugefügt. Im Ergebnis habe ich jedoch nur zwei Benachrichtigungen. Die Benachrichtigung, der die GroupSummary-Eigenschaft hinzugefügt wurde, ist nicht sichtbar.

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

Hier der Benachrichtigungstrigger,

notificationManager =   (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(0,firstNotification .build());
notificationManager.notify(1,secondNotifi .build());
notificationManager.notify(2,thirdNotifi.build());

Und das Ergebnis ist,

Ich möchte alle drei Benachrichtigungen im Cluster-Format anzeigen, ohne sie zu verpassen.

Jede Hilfe wird sehr geschätzt.

Antworten auf die Frage(6)

Ihre Antwort auf die Frage