Skip to content
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

How implementable is NotificationAction.icon? #233

Open
saschanaz opened this issue Feb 28, 2025 · 0 comments
Open

How implementable is NotificationAction.icon? #233

saschanaz opened this issue Feb 28, 2025 · 0 comments

Comments

@saschanaz
Copy link
Member

saschanaz commented Feb 28, 2025

What is the issue with the Notifications API Standard?

It seems the only working implementation as of now is Chrome for Windows.

  1. Windows: The action schema allows assigning an image via URL.
  2. macOS: UNNotificationActionIcon only allows either the system icon or the app-bundled image, but not a random generated resource.
  3. Linux: "actions-icons" hint is available but this replaces action text per the spec.
  4. Android: Setting icon is possible, but the doc says "As of Android Build.VERSION_CODES.N, action button icons will not be displayed on action buttons"

If the only supported platform is Windows, maybe we should reconsider the inclusion of the feature in the spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant