How do I access remote push notification data on applicationDidBecomeActive?

Man of One Way picture Man of One Way · Jul 18, 2011 · Viewed 8.7k times · Source

When receiving a remote push notification as the application is in the background, the app enters applicationDidBecomeActive. From there, how can I access the NSDictionary of data from the notification?

Answer

Morten Fast picture Morten Fast · Jul 18, 2011

The notification data is delivered to your app in application:didReceiveRemoteNotification:. If you want to process it in applicationDidBecomeActive: you should store it in application:didReceiveRemoteNotification: and read it again in applicationDidBecomeActive.