trigger
The conditions that trigger the delivery of the notification.
Declaration
@NSCopying var trigger: UNNotificationTrigger? { get }Discussion
For notifications that the system has 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 system sets this type using the trigger condition specified in the original request.