Reading from Apple's documentation about Push Notifications:
- As a result of the presented notification, the user taps the action button of the alert or taps the application icon.
If the action button is tapped, the system launches the application and the application calls its delegate’s
application:didFinishLaunchingWithOptions:
method - The notification is delivered when the application is running in the foreground.
The application calls its delegate’s
application:didReceiveRemoteNotification:
method
So my question is which delegate gets called if the application is in background state (it is running or it's suspended)? Is it application:didFinishLaunchingWithOptions:
or application:didReceiveRemoteNotification:
?
Please help me, thank you!