4

I am looking for a way to open an app on the page a pushnotification is pointing to. Is there a way to see if I have received any push notification when starting my app?

Thanks in advance

F'x
  • 12,105
  • 7
  • 71
  • 123
NicoTjai
  • 67
  • 2
  • 9

1 Answers1

6

Check for the launch option keys UIApplicationLaunchOptionsRemoteNotificationKey and UIApplicationLaunchOptionsLocalNotificationKey in the launchOptions-Dictionary given in application:didFinishLaunchingWithOptions:.

Felix
  • 35,354
  • 13
  • 96
  • 143
  • I have found this one. NSString *params=[[launchOptions objectForKey:@"UIApplicationLaunchOptionsRemoteNotificationKey"] objectForKey:@"key"]; but I don't know what kind of key I should use – NicoTjai Jan 06 '11 at 14:19
  • Do NSLog(@"%@", launchOptions) to see the contents of the whole dictionary in the console including all keys. – Felix Jan 06 '11 at 14:43