Instance Property


The identifier string of the action that the user selected.


var actionIdentifier: String { get }


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

var notification: UNNotification

The notification to which the user responded.

let UNNotificationDefaultActionIdentifier: String

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

let UNNotificationDismissActionIdentifier: String

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software