New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optional icon for NotificationAction #59
Comments
This seems reasonable. I wonder if any other vendors have implemented this feature. |
There are two subtleties here:
|
On 1 I agree that multiple image definitions can be done as a next step. On 2 I am less keen, though it is a good point. While providing an easily masked icon is good advice for the current crop of popular platforms, I'd rather not include such a recommendation in the normative text. Perhaps it's more appropriate in a non-normative note. |
On iOS 8 actions for notifications were introduced, but I can't find great information about action icons there. There is this: in this article there's a section about notifications, and this screenshot has a pause icon in it. It seems to be white on transparent, like for Android and Windows. |
@marco-c, would you have any input from Mozilla's POV? |
For info, Chrome Apps/Extensions notifications have an |
Not directly needed for the kind of things I'm currently building, but I can definitely see many use cases for this. |
On some platforms the button rendered for a NotificationAction can display an icon. This example shows it on an Android phone and watch.
I propose adding a simple icon attribute (like the one on NotificationOptions):
The text was updated successfully, but these errors were encountered: