I'm trying to play with NotificationListenerService for check if StatusBarNotifications (displayed in StatusBar) are inherent to a group (ex. mails or messages). I'm using sdk >= 21.
Playing with applications well-known like fb, whatsapp or gmail I saw different rules for marking grouped messages (group and key properties - of StatusBarNotification - are not so easy to manage for this purpose).
How is possible recognize when a notification posted / removed is in a group? and which is the group header?
答案 0 :(得分:0)
仅使用StatusBarNotification无法实现此目的。但是可以用onNotificationRemoved / Posted& amp; getActiveNotifications。