Skip to content

fix(app): unset orientation in PWA manifest to respect OS rotation lock - #379

Open
huangyxi wants to merge 1 commit into
agegr:mainfrom
huangyxi:pwa-orientation
Open

fix(app): unset orientation in PWA manifest to respect OS rotation lock#379
huangyxi wants to merge 1 commit into
agegr:mainfrom
huangyxi:pwa-orientation

Conversation

@huangyxi

@huangyxi huangyxi commented Aug 4, 2026

Copy link
Copy Markdown

The current orientation: "any" configuration in the PWA manifest unintentionally causes Android devices to bypass the user's system-level orientation lock status.

By removing this property entirely and leaving it unset, the browser falls back to its default behavior. This ensures that the PWA correctly respects the native OS rotation settings and functions as expected across both iOS and Android platforms.

W3C Documents
Discourse's Practice

@huangyxi

huangyxi commented Aug 4, 2026

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant