Comments (3)
In the WebKit issue, it was proposed that perhaps the number "1" could be used as a fallback for "flag" on systems where flag is not supported. However, it was noted that the semantics of "flag" and, say, using the number "1" as a fallback are different enough that that wouldn't make sense (or could be confusing to users).
In the case where either flag or number are not supported, then it might be prudent to throw a NotSupportedError
if either is not supported.
Of course, the risk is that authors themselves try/catch for the NotSupportedError
and end up using "1" as a fallback, which is not great either.
Thoughts?
from badging.
Some vaguely related discussions from the explainer:
#2
FWIW, adding a NotSupported
error would be a breaking change, as currently the API never throws, so I think we should try and avoid that, if we can.
from badging.
Sure, thought we might need to take the compat hit as the point of standardization is to make improvements to this early API based on implementation and deployment experience.
At this early stage of standardization (we haven't even published a FPWD yet) we should expect to be making a lot of breaking changes. We should only really expect the API to stabilize once it hits Candidate Recommendation.
from badging.
Related Issues (20)
- Test API in workers HOT 1
- 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
- Notification permission requirement HOT 5
- 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.