Creates and returns a new notification object using the specified payload data.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Cloud
Kit
Declaration
+ (instancetype)notificationFromRemoteNotificationDictionary:(NSDictionary *)notificationDictionary;
Parameters
notificationDictionary
The payload data for the push notification. This dictionary is the same one passed to your app delegate’s
application:
method. This parameter must not bedid Receive Remote Notification: fetch Completion Handler: nil
.
Return Value
A new notification object initialized with the payload data.
Discussion
Use this method to initialize a notification object from a push notification received by your app.