Re: [w3ctag/design-reviews] Badging API (#387)

As I’ve been working closely on this spec I hope it’s ok that I jump in. 

@hober, not sure I follow. Setting document.title is also not observable nor guaranteed to result in a user-visible UI change. Same with setting a favicon (see Safari, for instance). I’m wondering how this is different? 

I guess the fallback path would be as you suggested: 1. check for the API. 2. If not there, fallback to using title. 

The above assumes that the developer can badge a browser tab, not just an installed web app. For an installed web app, a developer could check if they are “installed” by querying the CSS display-mode media feature, which is applied by the web app manifest... it’s not a perfect, but could do the trick. 

In any case, if the Badge API is present, it implies a badge will be shown either in the dock (if app is installed) or in a browser tab (regular browser instance). 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/387#issuecomment-519634016

Received on Thursday, 8 August 2019 18:24:40 UTC