We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfc5c08 commit 280334dCopy full SHA for 280334d
Leanplum-SDK/Classes/Notifications/Local/LPLocalNotificationsManager.m
@@ -188,7 +188,7 @@ - (void)listenForLocalNotifications
188
for (UNNotificationRequest *request in requests) {
189
NSString *messageId = [[LPNotificationsManager shared] messageIdFromUserInfo:[request.content userInfo]];
190
if ([messageId isEqualToString:context.messageId]) {
191
- [UNUserNotificationCenter.currentNotificationCenter removeDeliveredNotificationsWithIdentifiers:@[request.identifier]];
+ [UNUserNotificationCenter.currentNotificationCenter removePendingNotificationRequestsWithIdentifiers:@[request.identifier]];
192
if ([LPConstantsState sharedState].isDevelopmentModeEnabled) {
193
LPLog(LPInfo, @"Cancelled notification");
194
}
0 commit comments