NotificationListenerService onNotificationPosted() called multiple times for single Notification when it is part of grouped notification
I am trying to listen to android notification using NotificationListenerService. I have tested the code with Whatsapp and Hangout notifications. Scenario 1: 1 Message from 1 User I receive onNotificationPosted() call once (which is correct) Scenario 2: 2 Messages from 1 user I receive onNotificationPosted() call twice accordingly (which is correct) [I get one more which is a grouped notification with the summary text which is same as the text. I ignore this notification manually] Scenario 3: multiple messages from multiple users I am receiving onNotificationPosted() call multiple times as per