File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/react-native/Libraries/PushNotificationIOS Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
537536RCT_EXPORT_METHOD (getScheduledLocalNotifications : (RCTResponseSenderBlock)callback)
You can’t perform that action at this time.
0 commit comments