Whenever I get a pop-up through the iPhone OS for APNS testing there are 2 conditions:
- application 开发者_运维百科is running
- application is not running
If I click on the view button of the popup through the iPhone OS then which method is called if application is running?
If application is not running?
Either way, it launches the application so you need to implement 'applicationDidFinishLaunching:' in your application delegate.
If your app is running and you receive a notification, then you need to implement 'application:didReceiveRemoteNotification'.
Read "Handling Remote Notifications" for more information.
精彩评论