mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Delete empty didRegisterUserNotificationSettings (#41013)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41013 ## Changelog: [iOS][Breaking] Deleted the no-op didRegisterUserNotificationSettings: callback in RCTPushNotificationManager Reviewed By: philIip Differential Revision: D50283620 fbshipit-source-id: 1582367c51c26e5b739cd9284d3b15bfa13274da
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bb9cc0ccec
commit
3bea8e1bd4
@@ -14,7 +14,6 @@ extern NSString *const RCTRemoteNotificationReceived;
|
||||
typedef void (^RCTRemoteNotificationCallback)(UIBackgroundFetchResult result);
|
||||
|
||||
#if !TARGET_OS_UIKITFORMAC
|
||||
+ (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
|
||||
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
|
||||
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification;
|
||||
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification
|
||||
|
||||
@@ -176,10 +176,6 @@ RCT_EXPORT_MODULE()
|
||||
];
|
||||
}
|
||||
|
||||
+ (void)didRegisterUserNotificationSettings:(__unused UIUserNotificationSettings *)notificationSettings
|
||||
{
|
||||
}
|
||||
|
||||
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
|
||||
{
|
||||
NSMutableString *hexString = [NSMutableString string];
|
||||
|
||||
@@ -88,13 +88,6 @@ NSString *kBundlePath = @"js/RNTesterApp.ios";
|
||||
|
||||
#if !TARGET_OS_TV && !TARGET_OS_UIKITFORMAC
|
||||
|
||||
// Required to register for notifications
|
||||
- (void)application:(__unused UIApplication *)application
|
||||
didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings
|
||||
{
|
||||
[RCTPushNotificationManager didRegisterUserNotificationSettings:notificationSettings];
|
||||
}
|
||||
|
||||
// Required for the remoteNotificationsRegistered event.
|
||||
- (void)application:(__unused UIApplication *)application
|
||||
didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
|
||||
|
||||
Reference in New Issue
Block a user