I have 2 iphones: 1 - with ios 10 and 2 - with ios 9
While trying the 1st iphone:
didRegisterForRemoteNotificationsWithDeviceToken method is not called when user clicks "allow" on the alert
Though, the method didRegisterUserNotificationSettings IS called.
In this case device does NOT receive push notifications.
While trying the 2nd iphone:
Both methods are called here. And device DOES receive push notifications.
Then I checked on simulator ios 8
In this case the same as in 1st. Only one method is called.
I checked some answers for similar question but they didn't help me. I doubt that the issue is somewhere within push notifications settings, cuz ios 9 works OK. So the issue is somewhere within ios 10.
The very questions are:
- How can I call method
didRegisterForRemoteNotificationsWithDeviceToken - Or how can I get the device token since it's the goal
Looking forward for your help!