Is it possible to differentiate between the cases where
- an iOS user has explicitly denied user notification permissions, and
- an iOS user has never been prompted for permission?
My situation: In the past, I've prompted for user notification permission, but never kept track of requests myself. Later, I stopped attempting to register any notification settings. Now, I'd like to re-introduce user notifications.
After a significant event in the App, my plan is to display some sort of UI that explains the benefit of opting in to user notifications. However, if the user has already declined, I'd prefer to show a separate UI that can take them into Settings.app.
Currently, I'm using -[UIApplication currentUserNotificationSettings]
to grab the current settings, but it appears that this returns UIUserNotificationTypeNone
for both of the above described cases.