What's the status with Badge API for iOS?
Closed this issue ยท 6 comments
I'm hooked up with this Badge API, but the last time I tried to use that, probably in some beginning 2020, and it didn't work in iOS. Roughly a year passed since I tried it. So my question:
What's the status with Badge API for iOS?
Does it work already? Will it work? What's the blocker? How can we make it possible?
Until Safari adds support for the badging API, this won't work on iOS (all browsers on iOS use WebKit under the hood). Perhaps file a bug on the WebKit bug tracker? https://bugs.webkit.org/
Closing as answered. Just echoing what @fallaciousreasoning said. Apple hasn't made any commitments to support this API. If they do, we will update the appropriate parts of the spec to show who supports what.
Ok, I notified them by creating a request here:
https://bugs.webkit.org/show_bug.cgi?id=223906
We'll see if there will be a response from them
Thanks for filing that, @jerrygreen! From past experience, Apple doesn't generally say if they are implementing something until they've finished implementing it and shipped it. They've given some informal feedback in the past about the general design of the API. That doesn't mean much, and certainly not and indicator of any form of support or commitment, but we are keeping our fingers crossed ๐ค.
Apple just added Badge API support to PWAs (finally)
This patch adds engine support for setAppBadge() and setClientBadge() on Navigator objects.
Engine support does not mean browser support.
Might be some time till it gets enabled in Safari. At least it is in the engine now.
It is supported now along with Push API https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes#Web-Apps
Though my attempts on implementing it on flutter PWA has failed. And strangely the same PWA running in chrome on android gets badge without even a line of badging API code.