According to the Local and Remote Notification Programming Guide, when a remote notification is delivered and you tap the app icon in the SpringBoard:
The user taps the default button in the alert or taps (or clicks) the app icon. If the default action button is tapped (on a device running iOS), the system launches the app and the app calls its delegate’s application:didFinishLaunchingWithOptions: method, passing in the notification payload (for remote notifications) or the local-notification object (for local notifications).
If the notification is remote, the system also calls application:didReceiveRemoteNotification:fetchCompletionHandler:.
However, when I see the remote notification badge and I tap the app icon, neither application:didFinishLaunchingWithOptions:
(app would be running in background), nor application:didReceiveRemoteNotification:
, nor application:didReceiveRemoteNotification:fetchCompletionHandler:
are called...
I successfully get the push notification's payload when tapping a banner or an alert, how could I also get it when tapping the app icon?
Thanks