<!--
{
  "availability" : [
    "macOS: 10.8.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSApplication/launchUserNotificationUserInfoKey",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSApplicationLaunchUserNotificationKey"
  },
  "title" : "launchUserNotificationUserInfoKey"
}
-->

# launchUserNotificationUserInfoKey

A key that indicates your app was launched because a user activated a notification in the Notification Center.

```
class let launchUserNotificationUserInfoKey: String
```

## Discussion

The [`launchUserNotificationUserInfoKey`](/documentation/AppKit/NSApplication/launchUserNotificationUserInfoKey) key is an <doc://com.apple.documentation/documentation/Foundation/NSUserNotification> object that is present in the <doc://com.apple.documentation/documentation/Foundation/NSNotification/userInfo> dictionary of the [`didFinishLaunchingNotification`](/documentation/AppKit/NSApplication/didFinishLaunchingNotification) notification if your app was launched because a user activated a notification in the Notification Center. To access the notification payload in the <doc://com.apple.documentation/documentation/Foundation/NSNotification/userInfo> dictionary, you can use code like this:

```objc
NSUserNotification *userNotification = [[myNotification userInfo]
    objectForKey:NSApplicationLaunchUserNotificationKey];
    if (userNotification) {
        // The app was launched by a user selection from Notification Center.
    }
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)