Skip to content

Commit eff59c9

Browse files
committed
add groupless summary notif to the db so that it can be cleared
Previously we were creating the groupless summary notificaiton, but not adding it to the notification db. This meant that when OneSignal notifications were cleared the summary notification would not be cleared.
1 parent f6a03b1 commit eff59c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/GenerateNotification.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,8 @@ private static void createGrouplessSummaryNotification(
715715
String group = OneSignalNotificationManager.getGrouplessSummaryKey();
716716
String summaryMessage = grouplessNotifCount + " new messages";
717717
int summaryNotificationId = OneSignalNotificationManager.getGrouplessSummaryId();
718+
OneSignalDbHelper dbHelper = OneSignalDbHelper.getInstance(currentContext);
719+
createSummaryIdDatabaseEntry(dbHelper, group, summaryNotificationId);
718720

719721
PendingIntent summaryContentIntent = intentGenerator.getNewActionPendingIntent(
720722
random.nextInt(),

0 commit comments

Comments
 (0)