Enable `UNNotificationCategoryOptions.CustomDismissAction` for default Notification Category
Originator: | kevin | ||
Number: | rdar://27485781 | Date Originated: | 21-Jul-2016 |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | 10.0 14A5309d |
Classification: | Enhancement | Reproducible: | Always |
Summary: If a Push Notification is send without a `category` value, then iOS will render the notification with the default actions `View` and `Cancel`. If `View` action is selected, then the `UNUserNotificationCenterDelegate` method `userNotificationCenter(_:didReceive:withCompletionHandler:)` with the `UNNotificationResponse` `actionIdentifier` value of `UNNotificationDefaultActionIdentifier`. However, if the `Cancel` action is selected, the delegate method is not invoked. The only solution is to define a custom `UNNotificationCategory` with the `UNNotificationCategoryOptions` value of `.CustomDismissAction` set. It would be useful to be able to set the `.CustomDismissAction` to the default `UNNotificationCategory` Steps to Reproduce: N/A Expected Results: Allow developer to set `options` property of default `UNNotificationCategory` to include `.CustomDismissAction` Actual Results: N/A Version: iOS 10.0 14A5309d Notes: Configuration: iOS 10.0 Attachments:
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!