shownotification

This method displays the custom view when a user is sent a push notification.

- (void)shownotification:(id <UIApplicationDelegate> _Nonnull)appDelegate 
notificationInfoDict:(id _Nonnull)notificationInfoDict;

To add the method

  1. Add this method to the AppDelegate class in the didReceiveRemoteNotification method.
  2. Check if pushNotificationWasSentFromHurree.
  3. If true, then call the shownotification method.

Objective C
Swift
[instance_object shownotification:
    appDelegate: appDelegate
    notificationInfoDict: notificationInfoDict
];
instance.shownotification(
    appDelegate: appDelegate
    notificationInfoDict: notificationInfoDict
)

Arguments

These are the arguments that define the method.

Name Type Mandatory Description
appDelegate id Mandatory This is the UIApplication delegate of the callee application.
notificationInfoDict id Mandatory This is the aps of the push dictionary received in the didReceiveNotification method of the AppDelegate.

results matching ""

    No results matching ""