Skip to content

Commit 1594bad

Browse files
committed
fix: upstream sync ifdefs
1 parent 008c0d3 commit 1594bad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/react-native/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,7 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
510510
: (RCTPromiseResolveBlock)resolve reject
511511
: (__unused RCTPromiseRejectBlock)reject)
512512
{
513-
#if TARGET_OS_VISION
514-
return;
515-
#endif
513+
#if !TARGET_OS_VISION
516514
// The user actioned a local or remote notification to launch the app. Notification is represented by UNNotification.
517515
// Set this property in the implementation of
518516
// userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler.
@@ -532,6 +530,7 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
532530
}
533531

534532
resolve((id)kCFNull);
533+
#endif
535534
}
536535

537536
RCT_EXPORT_METHOD(getScheduledLocalNotifications : (RCTResponseSenderBlock)callback)

0 commit comments

Comments
 (0)