You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since notifications commonly are presented by the platform's notification center, user agents may not be able to influence which features are available. A confirming user agent is commonly thought of as a user agent that supports all features listed in the spec, but in this case that actually works against us.
I propose clarifying in the spec that user agents should only expose properties on the Notification prototype when the feature is supported by the platform's notification center. This enables feature detection, and makes it possible for developers to choose an alternative way of delivering the content when a given feature (e.g. action buttons) is not available.
The main consequence of this is that developers won't be able to rely on certain properties being exposed on Notification instances. This never has been the case due to differences in browser support, and experience has taught us that usage of Notification instances usually is limited to close() and the events for non-persistent notifications.
Specific to Chrome, we're planning to switch to the system notification centers on Windows and Mac. Notably the latter has a large number of restrictions that we don't see elsewhere, and developers should have a way to recognize this, and work around it.
Since notifications commonly are presented by the platform's notification center, user agents may not be able to influence which features are available. A confirming user agent is commonly thought of as a user agent that supports all features listed in the spec, but in this case that actually works against us.
I propose clarifying in the spec that user agents should only expose properties on the
Notification
prototype when the feature is supported by the platform's notification center. This enables feature detection, and makes it possible for developers to choose an alternative way of delivering the content when a given feature (e.g. action buttons) is not available.The main consequence of this is that developers won't be able to rely on certain properties being exposed on
Notification
instances. This never has been the case due to differences in browser support, and experience has taught us that usage ofNotification
instances usually is limited toclose()
and the events for non-persistent notifications.Specific to Chrome, we're planning to switch to the system notification centers on Windows and Mac. Notably the latter has a large number of restrictions that we don't see elsewhere, and developers should have a way to recognize this, and work around it.
I've proposed a change in #80
The text was updated successfully, but these errors were encountered: