---
title: actionIdentifier
framework: usernotifications
role: symbol
role_heading: Instance Property
path: usernotifications/unnotificationresponse/actionidentifier
---

# actionIdentifier

The identifier string of the action that the user selected.

## Declaration

```swift
var actionIdentifier: String { get }
```

## Mentioned in

Declaring your actionable notification types Handling notifications and notification-related actions

## Discussion

Discussion This parameter may contain one the identifier of one of your UNNotificationAction objects or it may contain a system-defined identifier. The system defined identifiers are UNNotificationDefaultActionIdentifier and UNNotificationDismissActionIdentifier, which indicate that the user opened the app or dismissed the notification without any further actions. For more information about defining custom actions, see Declaring your actionable notification types.

## See Also

### Getting the Response Information

- [notification](usernotifications/unnotificationresponse/notification.md)
- [targetScene](usernotifications/unnotificationresponse/targetscene.md)
- [UNNotificationDefaultActionIdentifier](usernotifications/unnotificationdefaultactionidentifier.md)
- [UNNotificationDismissActionIdentifier](usernotifications/unnotificationdismissactionidentifier.md)
