Skip to content

Commit

Permalink
delete access to UIApplicationLaunchOptionsLocalNotificationKey (#43114)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #43114

Changelog: [iOS][Breaking]

PR#42628 introduced new behavior on how the react native infra tracks local notifications that start the app. in this PR, we are officially deleting the old implementation.

Reviewed By: ingridwang

Differential Revision: D52931617

fbshipit-source-id: 3b77479b0aacf239e45cfcc7d7c4b20e82e0b786
  • Loading branch information
philIip authored and facebook-github-bot committed Feb 20, 2024
1 parent e9351f0 commit 916dde4
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -565,27 +565,6 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
return;
}

NSMutableDictionary<NSString *, id> *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);
}

Expand Down

0 comments on commit 916dde4

Please sign in to comment.