UIApplicationLaunchOptionsLocalNotificationKey is deprecated but maybe shouldn't be

Number:rdar://30517161 Date Originated:14-Feb-2017 11:45 AM
Status:Open Resolved:
Product:iOS+SDK Product Version:10.3
Classification:User Notifications Reproducible:Always
UserNotifications Framework

UIApplicationLaunchOptionsLocalNotificationKey is deprecated in favour of the new User Notifications framework. We have adopted this framework in our app, but we still need to keep track of launch reasons so that we can make decisions based on that. 

For example, if our app is launched in the background to perform an interactive notification action, we don’t want to trigger a content refresh over the network, but we would want to do that in some other cases where the app is launched in the background.

Steps to Reproduce:
UIApplicationLaunchOptionsLocalNotificationKey is deprecated in the  UIApplication.h header file.

Expected Results:
There should be a way to detect (in applicationDidFinishLaunching) why the app launched.

Actual Results:
There’s no non-deprecated way to know at launch-time why the app launched if it launched from a notification action.

iOS 10.3


iPhone 6S



Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!