A trigger condition that indicates the notification was sent from Apple Push Notification Service (APNs).
SDKs
- iOS 10.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- User
Notifications
Declaration
@interface UNPushNotificationTrigger : UNNotification Trigger
Overview
You don't create instances of this class yourself. The system creates UNPush
objects and associates them with requests that originated from Apple Push Notification service. You encounter instances of this class when managing your app’s delivered notification requests, which store an object of this type in their trigger
property.