I am working on push notification on IOS 10. When App is inactive/closed and gets notifications I able to get the userinfo(notification payload) with
NSDictionary *info = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey];
But if I directly click the app icon (not notification badge) I am not able to find get the notification payload. Referred this post and tried to access by writing to file in
didReceiveRemoteNotification:userInfo
fetchCompletionHandler:^(UIBackgroundFetchResult handler)
{ Logging userinfo with NSLog to verify, but I don't see any log entry}
And reading it back at didFinishLaunchingWithOptions
, but no luck. Is there any other IOS method available for this use case?