---
title: localNotification
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uiapplication/launchoptionskey/localnotification
---

# localNotification

A key indicating that the app was launched to handle a local notification.

## Declaration

```swift
static let localNotification: UIApplication.LaunchOptionsKey
```

## Discussion

Discussion The value of this key is the UILocalNotification object that was triggered. For additional information about handling local notifications, see the application(_:didReceive:) method. This key is also used to access the same value in the userInfo dictionary of the notification named didFinishLaunchingNotification.

## See Also

### Accessing launch options

- [bluetoothCentrals](uikit/uiapplication/launchoptionskey/bluetoothcentrals.md)
- [bluetoothPeripherals](uikit/uiapplication/launchoptionskey/bluetoothperipherals.md)
- [cloudKitShareMetadata](uikit/uiapplication/launchoptionskey/cloudkitsharemetadata.md)
- [eventAttribution](uikit/uiapplication/launchoptionskey/eventattribution.md)
- [location](uikit/uiapplication/launchoptionskey/location.md)
- [newsstandDownloads](uikit/uiapplication/launchoptionskey/newsstanddownloads.md)
- [remoteNotification](uikit/uiapplication/launchoptionskey/remotenotification.md)
- [shortcutItem](uikit/uiapplication/launchoptionskey/shortcutitem.md)
- [sourceApplication](uikit/uiapplication/launchoptionskey/sourceapplication.md)
- [url](uikit/uiapplication/launchoptionskey/url.md)
- [userActivityDictionary](uikit/uiapplication/launchoptionskey/useractivitydictionary.md)
- [userActivityType](uikit/uiapplication/launchoptionskey/useractivitytype.md)
- [annotation](uikit/uiapplication/launchoptionskey/annotation.md)
