diff --git a/RNNotifications/RNNotifications.m b/RNNotifications/RNNotifications.m index d9abdc7f29b0063da38e484256eef74531f74f3c..e91494d2270f450f417cc010e9026ff7fa740305 100644 --- a/RNNotifications/RNNotifications.m +++ b/RNNotifications/RNNotifications.m @@ -507,12 +507,14 @@ RCT_EXPORT_METHOD(consumeBackgroundQueue) // Push opened local notifications NSDictionary* openedLocalNotification = [RNNotificationsBridgeQueue sharedInstance].openedLocalNotification; if (openedLocalNotification) { + [RNNotificationsBridgeQueue sharedInstance].openedLocalNotification = nil; [RNNotifications didNotificationOpen:openedLocalNotification]; } // Push opened remote notifications NSDictionary* openedRemoteNotification = [RNNotificationsBridgeQueue sharedInstance].openedRemoteNotification; if (openedRemoteNotification) { + [RNNotificationsBridgeQueue sharedInstance].openedRemoteNotification = nil; [RNNotifications didNotificationOpen:openedRemoteNotification]; } }