w3c / badging

Badging API
https://w3c.github.io/badging/
Other
88 stars 12 forks source link

Android support, at least #87

Closed garygreen closed 1 year ago

garygreen commented 2 years ago

This API seems nice but the problem is it's not supported by Android! (or iOS...)

https://github.com/w3c/badging/blob/main/explainer.md

On Android, badging is blocked at an OS level, as there is no API for setting a badge without also displaying a notification. However, a badge will already be displayed if a PWA has pending notifications (it just doesn’t allow the fine grained control proposed by this API).

If this badging API is to have ANY form of adoption then Google need to at least be a part of this proposal to allow setting of badges in Android.... have the w3c made any proposals or been in communication with Android team?

marcoscaceres commented 1 year ago

This is outside the scope of the standardization effort, I'm afraid.

fallaciousreasoning commented 1 year ago

It sounds like this is getting support in WebKit at the moment (at least for PWAs on iOS) (see @marcoscaceres' comment below) https://bugs.webkit.org/show_bug.cgi?id=223906

marcoscaceres commented 1 year ago

Note that landing in WebKit doesn't imply support in Safari.

As stated in the pull request: "Engine support does not mean browser support."

marcoscaceres commented 1 year ago

@garygreen, now supported in macOS and iOS betas :)