The data for a local or remote notification that was delivered to your app.
SDKs
- iOS 10.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- User
Notifications
Declaration
class UNNotification : NSObject
Overview
A UNNotification
object contains the initial notification request, which contains the notification's payload, and the date on which the notification was delivered.
Don't create notification objects directly. When handling notifications, the system delivers notification objects to your UNUser
object. The UNUser
object also maintains the list of notifications that were previously delivered, and you use the get
method to retrieve those objects.