I've just ran some tests here on the result returned by
-(UIRemoteNotificationType)enabledRemoteNotificationTypes
I'm calling it in the applicationDidBecomeActive
delegate method and Loging the result.
It works fine when alerts, badges or sounds are set.
However, when only the "View in Lock Screen" setting is set in my app push settings, the enabledRemoteNotificationTypes
still return UIRemoteNotificationTypeNone
.
Yes I get that sound, badge and alerts are disabled in the settings but shoudn't we have some way to detect this scenario in the App ?
In other words : How to know that the user only set the "View in Lock Screen" setting for the app ?