Device Token for Notification never received
| Originator: | guillaume.bitaudeau | ||
| Number: | rdar://28474468 | Date Originated: | 26/09/2016 |
| Status: | Duplicate/27945508/Closed | Resolved: | No |
| Product: | iOS | Product Version: | 10.0.1 |
| Classification: | Reproducible: | Always |
Area: APNS (Notifications) Summary: On iOs 10, call UIApplication.shared.unregisterForRemoteNotifications() prevent UIApplication.shared.registerForRemoteNotifications () to request a new deviceToken. Steps to Reproduce: Use case : - A user log in 1) ask for user permission (either using UIApplication.registerUserNotificationSettings or UNUserNotificationCenter.requestAuthorization) 2) Call UIApplication.shared.registerForRemoteNotifications () 3) func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) is called with a good deviceToken - Then this user log out 4) Call UIApplication.shared.unregisterForRemoteNotifications () - The user log in again 5) ask for user permission (either using UIApplication.registerUserNotificationSettings or UNUserNotificationCenter.requestAuthorization) 6) Call UIApplication.shared.registerForRemoteNotifications () Expected Results: func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) is called with a good deviceToken Actual Results: Application Delegate is never call (neither didRegisterForRemoteNotificationsWithDeviceToken nor didFailToRegisterForRemoteNotificationsWithError)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Same Behaviour
Same result here. Tried as well on the latest iPhone 7 using iOS 10.0.3 and it is till broken while it's perfectly working on iOS 8.x and 9.x
We are having the exact same problem.
Can't get the new Token sent.
This works properly on iOS 7, 8 and 9. Stopped working as of iOS 10.