Contact emails
mgi...@chromium.org, harr...@chromium.org
Explainer
https://github.com/WICG/badging/blob/master/explainer.md
Spec
https://wicg.github.io/badging
TAG review: https://github.com/w3ctag/design-reviews/issues/387
Proposing to ship the API to general availability in Chrome 81.
Summary
Allows websites to set a badge applying to the corresponding installed web application (as defined by the Web App Manifest standard) on the operating system shelf. The badge can optionally show a positive integer over the top of the application icon.
We have not yet implemented the "setClientBadge" part of the spec which sets a badge on the tab strip.
Link to “Intent to Prototype” blink-dev discussion
Most recent Intent to Experiment thread:
https://groups.google.com/a/chromium.org/g/blink-dev/c/TGe5hYfJZU4/m/62pk7vKSBwAJ
Link to Origin Trial feedback summary
https://docs.google.com/document/d/1h8kaA7VwlUijQJUcUdizXhAMymQJk2HNC3NDdEqxksA/edit
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
No, because it has to be individually implemented on each host platform, and some do not support badging.
Initially will launch on Windows and macOS.
Linux is not being initially supported. There is no general API (that I know of) for all Linux window managers. Ubuntu has one specifically for its window managers, which we could support in the future.
Android has no API for setting a badge. The Badge UI seen on Android is automatic when an app sends a notification, and is not individually controllable by apps.
Currently having product discussions about whether Chrome OS should support the API or whether it should tie badges to notifications like Android.
Demo link
https://killer-marmot.appspot.com/web/ ("Badging" heading; if available, allows you to set the badge to any value or clear it).
Risks
Interoperability and Compatibility
The usual risk that it fails to become an interoperable part of the web platform if other browsers do not implement it. Risk somewhat mitigated by the fact that the API is trivially feature-detectable and graceful degradation is easy (the badge simply doesn’t appear on platforms where the API is not supported). Not having this API can’t break any functionality that would have been possible without this API.
Edge: No signals (though note that equivalent proprietary API already web-exposed)
Firefox: Public support (albeit for the setClientBadge part of the spec, rather than the app badge, which they have said they won't implement just yet because they don't have PWAs on Desktop and Android doesn't support badging).
Safari: No signals (though Tess from Apple okayed the API design at TPAC, pending certain changes which we made; see https://github.com/WICG/badging/issues/55).
Web / Framework developers: Positive signals (see Origin Trial feedback)
Ergonomics
Will be used alongside manifest / app installation (doesn't work in Chrome unless the app is installed).
Activation
Will it be challenging for developers to take advantage of this feature immediately, as-is?
No, it's quite simple to use, just one method call to set and another to clear.
Would this feature benefit from having polyfills, significant documentation and outreach, and/or libraries built on top of it to make it easier to use?
We don't think any libraries are necessary. There are already public blog posts (https://web.dev/badging-api/) which will be updated as we get closer to shipping.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
https://crbug.com/976146 (plan to migrate from Chromium tests to WPT)
Entry on the feature dashboard
Contact emails
mgi...@chromium.org, harr...@chromium.org
Explainer
https://github.com/WICG/badging/blob/master/explainer.md
Spec
https://wicg.github.io/badging
TAG review: https://github.com/w3ctag/design-reviews/issues/387
Proposing to ship the API to general availability in Chrome 81.
Summary
Allows websites to set a badge applying to the corresponding installed web application (as defined by the Web App Manifest standard) on the operating system shelf. The badge can optionally show a positive integer over the top of the application icon.
We have not yet implemented the "setClientBadge" part of the spec which sets a badge on the tab strip.
Link to “Intent to Prototype” blink-dev discussion
Most recent Intent to Experiment thread:
https://groups.google.com/a/chromium.org/g/blink-dev/c/TGe5hYfJZU4/m/62pk7vKSBwAJ
Link to Origin Trial feedback summary
https://docs.google.com/document/d/1h8kaA7VwlUijQJUcUdizXhAMymQJk2HNC3NDdEqxksA/edit
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
No, because it has to be individually implemented on each host platform, and some do not support badging.
Initially will launch on Windows and macOS.
Linux is not being initially supported. There is no general API (that I know of) for all Linux window managers. Ubuntu has one specifically for its window managers, which we could support in the future.
Android has no API for setting a badge. The Badge UI seen on Android is automatic when an app sends a notification, and is not individually controllable by apps.
Currently having product discussions about whether Chrome OS should support the API or whether it should tie badges to notifications like Android.
Demo link
https://killer-marmot.appspot.com/web/ ("Badging" heading; if available, allows you to set the badge to any value or clear it).
Risks
Interoperability and Compatibility
The usual risk that it fails to become an interoperable part of the web platform if other browsers do not implement it. Risk somewhat mitigated by the fact that the API is trivially feature-detectable and graceful degradation is easy (the badge simply doesn’t appear on platforms where the API is not supported). Not having this API can’t break any functionality that would have been possible without this API.
Edge: No signals (though note that equivalent proprietary API already web-exposed)
Firefox: Public support (albeit for the setClientBadge part of the spec, rather than the app badge, which they have said they won't implement just yet because they don't have PWAs on Desktop and Android doesn't support badging).
Safari: No signals (though Tess from Apple okayed the API design at TPAC, pending certain changes which we made; see https://github.com/WICG/badging/issues/55).
Web / Framework developers: Positive signals (see Origin Trial feedback)
Ergonomics
Will be used alongside manifest / app installation (doesn't work in Chrome unless the app is installed).
Activation
Will it be challenging for developers to take advantage of this feature immediately, as-is?
No, it's quite simple to use, just one method call to set and another to clear.
Would this feature benefit from having polyfills, significant documentation and outreach, and/or libraries built on top of it to make it easier to use?
We don't think any libraries are necessary. There are already public blog posts (https://web.dev/badging-api/) which will be updated as we get closer to shipping.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
https://crbug.com/976146 (plan to migrate from Chromium tests to WPT)
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHqYdcYoeBJwMmUoCUmOi%3Dt%3Dp7KZh4t7-3HdRpn6mgdEnG6SAw%40mail.gmail.com.
LGTM1
Firefox: Public support (albeit for the setClientBadge part of the spec, rather than the app badge, which they have said they won't implement just yet because they don't have PWAs on Desktop and Android doesn't support badging).
Is this the signal you're referring to? It is indeed encouraging to see their support.
Safari: No signals (though Tess from Apple okayed the API design at TPAC, pending certain changes which we made; see https://github.com/WICG/badging/issues/55).
Have we reached out?
Web / Framework developers: Positive signals (see Origin Trial feedback)
Ergonomics
Will be used alongside manifest / app installation (doesn't work in Chrome unless the app is installed).
Activation
Will it be challenging for developers to take advantage of this feature immediately, as-is?
No, it's quite simple to use, just one method call to set and another to clear.
Would this feature benefit from having polyfills, significant documentation and outreach, and/or libraries built on top of it to make it easier to use?
We don't think any libraries are necessary. There are already public blog posts (https://web.dev/badging-api/) which will be updated as we get closer to shipping.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
https://crbug.com/976146 (plan to migrate from Chromium tests to WPT)
Are you planning to migrate before shipping?
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHqYdcYoeBJwMmUoCUmOi%3Dt%3Dp7KZh4t7-3HdRpn6mgdEnG6SAw%40mail.gmail.com.
On 10/01/2020 05:54, Matt Giuca wrote:
> https://wicg.github.io/badging
Any plans to move this out from WICG and make a pull request for HTML spec?
> TAG review: https://github.com/w3ctag/design-reviews/issues/387
Could you explain why it is closed and marked as "Resolution: withdrawn"?
Should we reactive this design review somehow?
Thanks,
Rego
Sorry for the late reply,On Fri, 10 Jan 2020 at 18:55, Yoav Weiss <yo...@yoav.ws> wrote:LGTM1Firefox: Public support (albeit for the setClientBadge part of the spec, rather than the app badge, which they have said they won't implement just yet because they don't have PWAs on Desktop and Android doesn't support badging).
Is this the signal you're referring to? It is indeed encouraging to see their support.Oh, no I had forgotten that discussion. That's a good show of support :)I was referring to the general fact that Marcos Caceres was working with us on the badging spec.Safari: No signals (though Tess from Apple okayed the API design at TPAC, pending certain changes which we made; see https://github.com/WICG/badging/issues/55).
Have we reached out?
Sorry for the late reply,On Fri, 10 Jan 2020 at 18:55, Yoav Weiss <yo...@yoav.ws> wrote:LGTM1Firefox: Public support (albeit for the setClientBadge part of the spec, rather than the app badge, which they have said they won't implement just yet because they don't have PWAs on Desktop and Android doesn't support badging).
Is this the signal you're referring to? It is indeed encouraging to see their support.Oh, no I had forgotten that discussion. That's a good show of support :)I was referring to the general fact that Marcos Caceres was working with us on the badging spec.
Safari: No signals (though Tess from Apple okayed the API design at TPAC, pending certain changes which we made; see https://github.com/WICG/badging/issues/55).
Have we reached out?Web / Framework developers: Positive signals (see Origin Trial feedback)
Ergonomics
Will be used alongside manifest / app installation (doesn't work in Chrome unless the app is installed).
Activation
Will it be challenging for developers to take advantage of this feature immediately, as-is?
No, it's quite simple to use, just one method call to set and another to clear.
Would this feature benefit from having polyfills, significant documentation and outreach, and/or libraries built on top of it to make it easier to use?
We don't think any libraries are necessary. There are already public blog posts (https://web.dev/badging-api/) which will be updated as we get closer to shipping.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
https://crbug.com/976146 (plan to migrate from Chromium tests to WPT)
Are you planning to migrate before shipping?It's on my TODO list but I wasn't planning to block on it. It's a fairly big job, since the API includes operating system components that need to be mocked out with WebDriver or some way to allow the test to inspect the state of the badge in the mocked OS UI.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHqYdcYoeBJwMmUoCUmOi%3Dt%3Dp7KZh4t7-3HdRpn6mgdEnG6SAw%40mail.gmail.com.On Sat, 11 Jan 2020 at 00:31, Manuel Rego Casasnovas <re...@igalia.com> wrote:
On 10/01/2020 05:54, Matt Giuca wrote:
> https://wicg.github.io/badging
Any plans to move this out from WICG and make a pull request for HTML spec?I haven't discussed migration plans with anyone. Is HTML the right place for it? It could also belong to its own spec within Web Apps WG.
It's also probably premature to migrate to a standards track, since there is currently only one implementation.
> TAG review: https://github.com/w3ctag/design-reviews/issues/387
Could you explain why it is closed and marked as "Resolution: withdrawn"?
Should we reactive this design review somehow?It has been reopened. Thanks for prompting.
Thanks,
Rego
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHqYdcZeQh%2BSaEekvvtgKgYcD2uaA%2Be_HV_QjQeFhSEK8GqduQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEjp03fp8KV%2BpqkWJ5quNYMhdeEPoN1z_AHn2M%2BXFWQgOQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw8qoqu%2BvjBOTQ5K4WRjmHqQyBectKXkwgeo2zQzQOqb0A%40mail.gmail.com.
Thanks reviewers!
LGTM3
Given that, LGTM2!
SGTM, thanks!
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHqYdcYoeBJwMmUoCUmOi%3Dt%3Dp7KZh4t7-3HdRpn6mgdEnG6SAw%40mail.gmail.com.
On Sat, 11 Jan 2020 at 00:31, Manuel Rego Casasnovas <re...@igalia.com> wrote:
On 10/01/2020 05:54, Matt Giuca wrote:
> https://wicg.github.io/badging
Any plans to move this out from WICG and make a pull request for HTML spec?I haven't discussed migration plans with anyone. Is HTML the right place for it? It could also belong to its own spec within Web Apps WG.
Agree that HTML is not the immediate candidate here, and WebApps may be interested.It's also probably premature to migrate to a standards track, since there is currently only one implementation.That's not necessarily true. As long as the WG is interested in a spec, nothing prevents migration to it.Might be worthwhile to bring it up with them and see what they say. (But I don't think this should be a blocker here)
--> TAG review: https://github.com/w3ctag/design-reviews/issues/387
Could you explain why it is closed and marked as "Resolution: withdrawn"?
Should we reactive this design review somehow?It has been reopened. Thanks for prompting.
Thanks,
Rego
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHqYdcZeQh%2BSaEekvvtgKgYcD2uaA%2Be_HV_QjQeFhSEK8GqduQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEjp03fp8KV%2BpqkWJ5quNYMhdeEPoN1z_AHn2M%2BXFWQgOQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.