Kayem
Kayem

Reputation: 13

How to access notification settings programmatically

My application uses push notifications. It would be nice to show notifications status on the UI. Is it possible to read notification settings from iPhone settings application like my own application settings in settings bundle?

Upvotes: 1

Views: 802

Answers (2)

yuji
yuji

Reputation: 16725

[[UIApplication sharedApplication] enabledRemoteNotificationTypes] will give you a bitmask showing whether badges, sounds, and/or alerts are enabled for your app. (Note that this setting only affects remote notifications; local notifications are unaffected).

Otherwise, as rckoenes points out, you can't access any settings in your app.

Upvotes: 1

rckoenes
rckoenes

Reputation: 69459

No you can't access general settings from your app.

Upvotes: 0

Related Questions