Reputation: 667
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?
Upvotes: 1
Views: 2125
Reputation: 631
Using bundle identifier for your app
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=NOTIFICATIONS_ID&path=com.my.app"]];
Upvotes: 0
Reputation: 7260
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)
Upvotes: 3