tags:

views:

40

answers:

1

Whenever I get a pop-up through the iPhone OS for APNS testing there are 2 conditions:

  1. application is running
  2. 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?

A: 

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.

refulgentis