Definition
orientation (manifest field)
orientation is a manifest field, e.g. "orientation": "portrait-primary", that requests a fixed screen orientation for the installed app. Accepted values include any, natural, landscape, portrait, portrait-primary, portrait-secondary, landscape-primary and landscape-secondary.
The lock only applies once the app is running in standalone or fullscreen display mode; a normal browser tab ignores the manifest orientation field entirely and follows the device's own rotation lock.
This is the same set of values accepted by the Screen Orientation API's lock() method, so a manifest-level lock and a JavaScript-level screen.orientation.lock() call are complementary — the manifest sets the default at launch, the API can change it later.
A landscape-only game or dashboard app benefits from locking orientation to avoid an awkward auto-rotate mid-session, while most content-driven PWAs should leave orientation as "any" (the default) so it behaves like a normal page.
Support varies by platform: desktop Chromium and iOS effectively ignore the field since desktop windows and iPad multitasking do not follow the same rotation model as a phone.