Skip to content

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

Merged
agegr merged 1 commit into
agegr:mainfrom
huangyxi:pwa-orientation
Aug 7, 2026
Merged

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

Conversation

@huangyxi

@huangyxi huangyxi commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

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
Contributor Author

@agegr
agegr merged commit 99d4ea1 into agegr:main Aug 7, 2026
pull Bot pushed a commit to tohka0x01/pi-web that referenced this pull request Aug 7, 2026
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.

2 participants