In iOS 8, registerForRemoteNotifications does not work if the requested set of UIUserNotificationSettings is larger than the one currently available
| Originator: | apoorvkhatreja | ||
| Number: | rdar://20781785 | Date Originated: | 05/02/2015 |
| Status: | Open | Resolved: | NO |
| Product: | iOS | Product Version: | 8.3 |
| Classification: | Reproducible: | Always |
Summary: Requesting for UIUserNotificationTypeSound permissions after relinquishing it once seems impossible. This prevents us from building an in-app settings toggle that allows the user to disable notification 'sounds' temporarily and enable them later. Steps to Reproduce: 1) Register for remote notifications in iOS 8 with 3 user notification settings: UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge 2) Press allow on the UIAlertView that comes up 3) Check notification centre settings for your app, observe that toggle for 'Sounds' is ON. 4) Register for remote notifications again with 2 permissions only this time: UIUserNotificationTypeAlert | UIUserNotificationTypeBadge 5) Check notification centre settings for your app, observe that the toggle for 'Sounds' is now OFF. 6) Register for remote notifications again with 3 permissions this time: UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge 7) Check notification centre settings for your app. Expected Results: 'Sounds' toggle should turn ON after calling registerForRemoteNotifications again. Actual Results: 'Sounds' toggle remains OFF, no matter how many times you call registerForRemoteNotifications with the appropriate UIUserNotificationSettings.
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!