<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotifications",
  "identifier" : "/documentation/UserNotifications/UNNotificationResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "c:objc(cs)UNNotificationResponse"
  },
  "title" : "UNNotificationResponse"
}
-->

# UNNotificationResponse

The user’s response to an actionable notification.

```
class UNNotificationResponse
```

## Overview

When the user interacts with a delivered notification, the system delivers a [`UNNotificationResponse`](/documentation/UserNotifications/UNNotificationResponse) object to your app so that you can process the response. Users can interact with delivered notifications in many ways. If the notification’s category had associated action buttons, they can select one of those buttons. Users can also dismiss the notification without selecting one of your actions and they can open your app. A response object tells you which option the user selected.

You don’t create [`UNNotificationResponse`](/documentation/UserNotifications/UNNotificationResponse) objects yourself. Instead, the shared user notification center object creates them and delivers them to the [`userNotificationCenter(_:didReceive:withCompletionHandler:)`](/documentation/UserNotifications/UNUserNotificationCenterDelegate/userNotificationCenter(_:didReceive:withCompletionHandler:)) method of its delegate object. Use that method to extract any needed information from the response object and take appropriate action.

For more information about responding to actions, see [Handling notifications and notification-related actions](/documentation/UserNotifications/handling-notifications-and-notification-related-actions).

## Topics

### Getting the Response Information

[`actionIdentifier`](/documentation/UserNotifications/UNNotificationResponse/actionIdentifier)

The identifier string of the action that the user selected.

[`notification`](/documentation/UserNotifications/UNNotificationResponse/notification)

The notification to which the user responded.

[`targetScene`](/documentation/UserNotifications/UNNotificationResponse/targetScene)

The scene where the system reflects the user’s response to a notification.

[`UNNotificationDefaultActionIdentifier`](/documentation/UserNotifications/UNNotificationDefaultActionIdentifier)

An action that indicates the user opened the app from the notification interface.

[`UNNotificationDismissActionIdentifier`](/documentation/UserNotifications/UNNotificationDismissActionIdentifier)

The action that indicates the user explicitly dismissed the notification interface.



---

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)