Returns the types of notifications the app accepts.
- iOS 3.0–8.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
A bit mask whose values indicate the types of notifications the user has requested for the app. See
UIRemote for valid bit-mask values.
The values in the returned bit mask indicate the types of notifications currently enabled for the app. These types are first set when the app calls the
register method to register itself with Apple Push Notification service. Thereafter, the user may modify these accepted notification types in the Notifications preference of the Settings app. This method returns those initial or modified values. iOS does not display or play notification types specified in the notification payload that are not one of the enabled types. For example, the app might accept icon-badging as a form of notification, but might reject sounds and alert messages, even if they are specified in the notification payload.