Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device Posture API #882

Open
darktears opened this issue Sep 14, 2023 · 0 comments
Open

Device Posture API #882

darktears opened this issue Sep 14, 2023 · 0 comments

Comments

@darktears
Copy link

darktears commented Sep 14, 2023

Request for Mozilla Position on an Emerging Web Specification

Other information

The Device Posture API is an API which helps targeting foldable devices. It provides developers the ability to query the posture of the device (through MQs or JavaScript) and provide a differentiated experience to the user. It does not expose the hinge angle sensor value but a set of "posture" which describe the current physical position of the device.

As this time this API applies only to Android and Windows OSes. Android provides the necessary OS APIs over here. Windows doesn't have an official API yet but instead relies on OEMs implementing the following specification in their middleware pre-installed software.

This API is to complimentary of the Viewport Segments which also helps targeting foldable devices (Mozilla position requested over here).

This API is enabled by default on Samsung Internet.

TAG review here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Unscreened
Development

No branches or pull requests

1 participant