Instance Property

trigger

The conditions that trigger the delivery of the notification.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(readonly, copy, nonatomic) UNNotificationTrigger *trigger;
macOS
@property(readonly, copy, atomic) UNNotificationTrigger *trigger;

Discussion

For notifications that have already been delivered, use this property to determine what caused the delivery to occur. For remote notifications, this property contains a UNPushNotificationTrigger object. For other notifications, the type is based on the trigger condition specified in the original request.

See Also

Getting the Request Details

identifier

The unique identifier for this notification request.

content

The content associated with the notification.