I want to respect the intentions of my users and not call [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(...)] if they disabled remote notifications for my application.
When I call UIRemoteNotificationType enabledTypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes] I get information about what types of notifications are enabled for my application. However, the Notification Center for this application can be disabled, and I still get the previously activated notification type from this method until we select "No".
Therefore, my application considers that notifications are included, even if they are not.
Is there a way to programmatically find out the status of the Notification Center for my application? (ON / OFF).
source share