diff --git a/packages/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm b/packages/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm index 3f868f7708d..e366d196aad 100644 --- a/packages/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +++ b/packages/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm @@ -535,13 +535,14 @@ RCT_EXPORT_METHOD(getInitialNotification if (self.initialNotification) { NSDictionary *notificationDict = RCTFormatUNNotificationContent(self.initialNotification.request.content); - NSDictionary *userInfo = notificationDict[@"userInfo"]; if (IsNotificationRemote(self.initialNotification)) { - NSMutableDictionary *userInfoCopy = [userInfo mutableCopy]; + // For backwards compatibility, remote notifications only returns a userInfo dict. + NSMutableDictionary *userInfoCopy = [notificationDict[@"userInfo"] mutableCopy]; userInfoCopy[@"remote"] = @YES; resolve(userInfoCopy); } else { - resolve(userInfo); + // For backwards compatibility, local notifications return the notification. + resolve(notificationDict); } return; }