w3c/badging

Does this extend to badges in extensions?

Closed this issue · 6 comments

Needed to know, if extensions would also have this feature? If not, what is the current recommended way of listening to server updates, in extensions, is there any alternative there, without showing notification?

Whether this works in extensions is probably a vendor specific detail (there is no standard for web extensions, and each browser can implement them however they like).

That said, I'm not entirely sure what you're asking. Can an extension set a badge on a window it's interacting with? I'd expect so, the same way it can use any other DOM API on the page.

Or are you asking if you can use this API to badge an extension icon? In that case you're definitely best off filing a bug against whichever browser you're developing an extension for.

So, the badges are supported in extensions, but the issue is, I wanted to update badge of my extension, based on a web push notification, but without showing the notification(silent notification)

I think this usecase, is not supported, right now, but do we have any other way to implement this?

Similar to how native apps, implement badge updates, with silent push notifications?
@fallaciousreasoning

This API looks like it might do what you want: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browserAction/setBadgeText

I'm going to close this issue because it seems unrelated to this API.

This was not the answer. I am still looking for any solution to my question. I need silent notifications of badge updates. Knowing that it cannot be done in browsers, currently, I wish to log an issue here