<!--
{
  "availability" : [
    "iOS: 9.0.0 - 10.0.0",
    "iPadOS: 9.0.0 - 10.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplicationDelegate/application(_:handleActionWithIdentifier:for:withResponseInfo:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIApplicationDelegate(im)application:handleActionWithIdentifier:forLocalNotification:withResponseInfo:completionHandler:"
  },
  "title" : "application(_:handleActionWithIdentifier:for:withResponseInfo:completionHandler:)"
}
-->

# application(_:handleActionWithIdentifier:for:withResponseInfo:completionHandler:)

Called when your app has been activated by the user selecting an action from a local notification.

```
optional func application(_ application: UIApplication, handleActionWithIdentifier identifier: String?, for notification: UILocalNotification, withResponseInfo responseInfo: [AnyHashable : Any], completionHandler: @escaping () -> Void)
```

## Parameters

`application`

The app object that was activated for the user-selected action.

`identifier`

The identifier for the custom action.

`notification`

The local notification object that was triggered.

`responseInfo`

The data dictionary sent by the action.

`completionHandler`

A block that you must call when you are finished performing the action.

## Discussion

A `nil` value in the `identifier` parameter indicates the default action.

Call the completion handler as soon as you’ve finished handling the action.

---

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)