Type Method

notificationFromRemoteNotificationDictionary:

Creates and returns a new notification object using the specified payload data.

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:didReceiveRemoteNotification:fetchCompletionHandler: method. This parameter must not be 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.

See Also