Contact emails
mgi...@chromium.org, ray...@chromium.org, harr...@chromium.org
Spec
Explainer: https://github.com/WICG/badging/blob/master/explainer.md#detailed-api-proposal (up to date)
Draft: https://wicg.github.io/badging (obsolete)
Summary
Allows websites to set a badge applying to a URL scope, shown in a user-agent-specific place. In our experiment, we badge installed web applications (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.
Badge API was the subject of a previous experiment from M73 to 77 (https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/KEUnHsvulEU/tMzKbzHxBQAJ). That version was not URL-scoped and was specifically tied to installable apps. The feedback received from that experiment indicated that we should generalize the API to not just apply to installed apps, and that sites need to be able to apply badges to URL scopes for control over which apps / pages the badge appears on. The new experiment adds a new "scope" parameter to the API which we want to get feedback on.
Link to “Intent to Implement” blink-dev discussion
https://groups.google.com/a/chromium.org/d/msg/blink-dev/Fw764MVF5nI/FNlBi815AwAJ
Goals for experimentation
We want to focus specifically on the changes to the API, specifically the addition of the "scope" parameter and the new complexity of setting badges at certain scopes and clearing them (which can cause the badge to fall back to one set in an outer scope).
Some questions:
Experimental timeline
M78: Experiment begins.
M80: Last milestone of the experiment.
M81: Planned general availability of the API.
We plan to make necessary changes to the API during the experiment.
Any risks when the experiment finishes?
No risk of data loss. However, it would represent a disappearing prominent feature in apps using it.
The planned transition from experiment to general availability (assuming the API is not outright rejected) ensures that early adopters do not have to have the feature removed for any time. Thus the only risk here is if we decide not to proceed with this API at all.
Ongoing technical constraints
There is some technical complexity here due to having a separate implementation of the API on each of the supported platforms (at the time of writing, Chrome OS, Windows and macOS).
Debuggability
N/A
Will this feature be supported on all five Blink platforms supported by Origin Trials (Windows, Mac, Linux, Chrome OS, and Android)?
Only Chrome OS, Windows and macOS (with a separate implementation on each, to talk to each platform’s internal API for badging). On Chrome OS, we are working with the Shelf team to plug into the implementation that is being built in parallel for Android apps to show a badge.
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.
See this document for details on how we plan to interface with each OS (keeping in mind that on Windows, we use the Win32 API, not the UWP one, both for compat with Windows 7, and because we don’t think we have access to the UWP API).
Link to entry on the feature dashboard
--
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/CAHqYdcbrtGB5A9pPitPPyB0NQn8MQ4n51bcAOLJWPSw_aetCGw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHqYdcbUw_K9F9DpbyErxmCCfiEN9cBm4rJLQUUeHnEA4VkTdQ%40mail.gmail.com.