1

I found that

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=NOTIFICATIONS_ID"]];

goes to notification settings. Can I go into the notification settings of my app?

yuji
  • 16,533
  • 4
  • 60
  • 62
Umgre
  • 657
  • 1
  • 6
  • 14

2 Answers2

3

You can access, for example, mail notifications using :

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=NOTIFICATIONS_ID&path=Mail"]];

Use the bundle display name of your app in the path, instead of Mail.

Warning : This doesn't work anymore under iOS 5.1 (thanks smparkes for the comment)

Zaphod
  • 5,766
  • 2
  • 33
  • 52
0

Using bundle identifier for your app

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=NOTIFICATIONS_ID&path=com.my.app"]];
Tuan Pham
  • 601
  • 9
  • 8