Skip to content

Commit 1af7b06

Browse files
committed
Ignore group summary notification
1 parent f178550 commit 1af7b06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/src/main/java/com/devsonflutter/reflex/notification/NotificationListener.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public class NotificationListener extends NotificationListenerService {
4040
@RequiresApi(api = VERSION_CODES.N)
4141
@Override
4242
public void onNotificationPosted(StatusBarNotification notification) {
43+
// Ignore group summary notification
44+
if ((notification.getNotification().flags & Notification.FLAG_GROUP_SUMMARY) != 0) {
45+
return;
46+
}
47+
4348
// Package name as title
4449
String packageName = notification.getPackageName();
4550
ReflexPlugin.debugPrint("Notification Received From: " + packageName);

0 commit comments

Comments
 (0)