Comments (5)
For an API like this (which might be called in contexts where permission prompts can't be shown like service workers, or without user interaction) generally the user agent automatically showing a permission prompt doesn't work very well. Although it is one thing I am considering maybe doing. It would at least be better than user agent sniffing or unconditionally requesting permission...
from badging.
It's a requirement in Safari, and it might become a requirement in Chrome on MacOS (for the same OS reasons that it is a requirement in Safari I imagine).
from badging.
I think if the user agent wants, they can show the required permission prompt when the app tries to set a badge, so websites shouldn't need to worry about requesting the permission separately. Was that what we intended here @marcoscaceres? Sounds like it might be worth cleaning up anyway
from badging.
unconditionally requesting permission...
This is what the demo does now unfortunately.
from badging.
Good point @mkruisselbrink - I've clearly been out of it for a while 😆
Hmm, definitely feels unideal that the demo is unconditionally requesting permission to show notifications - Is it a requirement now, that the notifications permission is granted?
from badging.
Related Issues (20)
- Test API in workers HOT 1
- Clarify what to do when some badging mode is not supported HOT 3
- Set up auto publish HOT 1
- PWA HOT 4
- Checking against top-level origin should use same origin-domain
- Question regarding Android mobile support HOT 3
- What's the status with Badge API for iOS? HOT 6
- App badging supposed to work while PWA is not open? HOT 2
- [Browsers Extensions]: Silent Badge updates should be supported in browser extensions
- badging without installing pwa HOT 2
- Android support, at least HOT 4
- TPAC 2022 status report
- Broken references in Badging API
- Deal with non-fully active documents HOT 2
- Should third-parties be allowed to use the API? HOT 2
- Disassociate badging from manifest
- Selectively exposing the API could be a fingerprinting vector HOT 3
- A means to associate a badge with an installed application HOT 1
- CFC to publish as First Public Working Draft HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from badging.