diff --git a/ios/RNCPushNotificationIOS.m b/ios/RNCPushNotificationIOS.m index 3965c18c0..cd405bfe8 100644 --- a/ios/RNCPushNotificationIOS.m +++ b/ios/RNCPushNotificationIOS.m @@ -611,6 +611,7 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification } } + RCT_EXPORT_METHOD(getInitialNotification:(RCTPromiseResolveBlock)resolve reject:(__unused RCTPromiseRejectBlock)reject) { @@ -625,11 +626,6 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification initialNotification[@"remote"] = @YES; resolve(initialNotification); } else if (initialLocalNotification) { - NSMutableDictionary *userInfo = [content.userInfo mutableCopy]; - NSMutableDictionary *localInfo = [initialLocalNotification.userInfo mutableCopy]; - localInfo[@"userInteraction"] = [NSNumber numberWithInt:1]; - initialLocalNotification.userInfo = localInfo; - initialLocalNotification[@"userInteraction"] = [NSNumber numberWithInt:1]; resolve(RCTFormatLocalNotification(initialLocalNotification)); } else { resolve((id)kCFNull);