Push Payload Receivers
If you want to retrieve the notification payload sent to the device, you can use the following methods in the AppDelegate class. Netmera swizzles iOS methods.
UNUserNotificationCenter
UNUserNotificationCenter is used for iOS 10 and above devices.
If your push don't reflect on iOS:
In scenarios where push notifications do not reflect when clicked on iOS devices, this method may be utilized. It should be placed at the top of didFinishLaunchingWithOptions.
This method should be placed at the top line under didFinish.
Push Payload for Push Click
This method is used to take the push payload when the push notification is clicked.
Push Payload for Push Received
Take push payload for push received. This method will return latest push object received by device.
Push Payload for Push Received on Application Foreground
Take push payload for push Received on application foreground.
Take Push Token Method
Last updated