In my project, push notifications worked correctly on iOS 9 and did not work on iOS 10. My project has a notification model that allows you to enable / disable push notifications from the initial settings and settings screen. And the state of this model was based on the UIUserNotificationSettings settings that can be obtained from the system (registerUserNotificationSettings: and currentUserNotificationSettings).
States: 1. UNDEFINED - currentUserNotificationSettings is nil or count count is 0 2. APLIED - currentUserNotificationSettings are equal to those requested by registerUserNotificationSettings: 3. DENIED - currentUserNotificationSettings are not equal ...
As I said, on iOS 9 this model works well, but on iOS 10 it never becomes UNDEFINED, because the number of countUserNotificationSettings categories is not zero, even if the application has been reinstalled.
Thus, the state of the model becomes DENIED when the application starts and does not call registerUserNotificationSettings: at all (it is assumed that the user refused push notifications).
source share