Instance Property

notification

The notification to which the user responded.

Declaration

iOS, Mac Catalyst, watchOS
@property(readonly, copy, nonatomic) UNNotification *notification;
macOS
@property(readonly, copy, atomic) UNNotification *notification;

See Also

Getting the Response Information

actionIdentifier

The identifier string of the action that the user selected.

UNNotificationDefaultActionIdentifier

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

UNNotificationDismissActionIdentifier

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