Skip to content

Commit 6921ef6

Browse files
committed
update Notifications.clearAll() method to really clear all
1 parent f9ea2be commit 6921ef6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iOS_SDK/OneSignalSDK/OneSignalNotifications/OSNotificationsManager.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ + (void)presentAppSettings {
337337
}
338338

339339
+ (void)clearAll {
340+
[[UNUserNotificationCenter currentNotificationCenter] removeAllDeliveredNotifications];
341+
// TODO: Determine if we also need to call clearBadgeCount
340342
[self clearBadgeCount:false];
341343
}
342344

0 commit comments

Comments
 (0)