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,695
  • 4
  • 63
  • 64
Umgre
  • 667
  • 1
  • 6
  • 15

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
  • 6,758
  • 3
  • 40
  • 60
0

Using bundle identifier for your app

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