diff --git a/packages/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm b/packages/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm index 31b7dcb7a89..d04a30cc5c6 100644 --- a/packages/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +++ b/packages/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm @@ -565,27 +565,6 @@ RCT_EXPORT_METHOD(getInitialNotification return; } - NSMutableDictionary *initialRemoteNotification = - [self.bridge.launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey] mutableCopy]; - - // The user actioned a remote notification to launch the app. This is a fallback that is deprecated - // in the new architecture. - if (initialRemoteNotification) { - initialRemoteNotification[@"remote"] = @YES; - resolve(initialRemoteNotification); - return; - } - - UILocalNotification *initialLocalNotification = - self.bridge.launchOptions[UIApplicationLaunchOptionsLocalNotificationKey]; - - // The user actioned a local notification to launch the app. Notification is represented by UILocalNotification. This - // is deprecated. - if (initialLocalNotification) { - resolve(RCTFormatLocalNotification(initialLocalNotification)); - return; - } - resolve((id)kCFNull); }