iOS 10 Notification Content extensions need the ability to dynamically change the notification's actions

Originator:AriXmail
Number:rdar://27124935 Date Originated:30-Jun-2016 10:55 PM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 10
Classification: Reproducible:
 
Summary:
iOS 10's powerful Notification Content extensions give users a great experience when receiving notifications from various apps. The Notification Content extension can handle notification actions (the buttons on the notification) and decide whether or not the notification should be dismissed in response to the user selecting an action.

The ability for a notification to not dismiss when an action is selected is great, but the ability to update the actions afterwards is necessary to use this functionality to its full potential.

For example, if a user receives a notification from a social network that includes a "Like" action, the action should change to "Unlike" after it's invoked by the user. An "Archive" action from an email client should turn into an "Undo Archive" action. Some actions may be permanent and irreversible (such as replying to a message or choosing how to proceed with an automated workflow), so it should also be possible to hide an action entirely after it's been invoked. Other use cases also require the ability to add new actions after one's been selected, or to remove all of the actions while a request is made (which could be displayed in the notification content's UI), and add a new set once the request is complete.

To solve this problem, the notification's category or set of actions should be updatable at any time by the Notification Content extension, perhaps as a method on NSExtensionContext.

Steps to Reproduce:
1. Look at UserNotificationsUI API

Expected Results:
There should be a way of changing the category of the notification at run-time or passing in an arbitrary set of actions.

Actual Results:
No such API exists

Version:
iOS 10 beta 1

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!