[w3c/manifest] "Default" Orientation (#632)

I understand that the values allowed for the manifest's orientation are the same as OrientationLockType in the Screen Orientation API.

However, none of the following orientations seems to simply respect user's Rotation Lock settings:

any
natural
landscape
landscape-primary
landscape-secondary
portrait
portrait-primary
portrait-secondary


"natural" seems to just be the same as "portrait", even if my phone is locked in Landscape.

"any" seems to just ignore any setting, and simply allow rotation freely.


I realized eventually that if I don't provide an "orientation" setting in the manifest, the app will simply respect the user's rotation lock setting, while still allow for rotation, similarly to "any", if the user doesn't have rotation locked. This is true on Google Chrome.

Is this an official/standard behavior, that if we don't provide the setting, it will default to the device's orientation setting?

Would there be any chance to have an extra orientation option, like "auto" or "default", to ensure this is the behavior I want for my application? I'm afraid that browsers could have different behaviors for orientation, because I didn't specify it in my manifest.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/632

Received on Tuesday, 12 December 2017 18:12:35 UTC