objective c - ios change notifications for app from inside app -


i have "settings" tab inside app asks user if want "receive notifications when app closed?"

normally user has in ios5 notifications center in general tab. can modify settings own app?

no, can't directly modify settings in app.

the best can use url scheme take user directly notification settings app:

[[uiapplication sharedapplication] openurl:[nsurl urlwithstring:@"prefs:root=notifications_id&path=mail"]]; 

(replace "mail" bundle display name of app.)


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -