GoogleChromeLabs / bubblewrap

Bubblewrap is a Command Line Interface (CLI) that helps developers to create a Project for an Android application that launches an existing Progressive Web App (PWAs) using a Trusted Web Activity.
Apache License 2.0
2.38k stars 162 forks source link

How to disable App rotation? #678

Open NicoHood opened 2 years ago

NicoHood commented 2 years ago

I've set set orientation to the default value. Now with rotation lock on, my phone still rotates the app, when I rotate the screen. This should only happen when rotation lock is not set, then it is fine. How can I avoid this?

daniel007enirman commented 2 years ago

any solution

NicoHood commented 2 years ago

@daniel007enirman What do you mean?

NicoHood commented 7 months ago

Setting it to "any" does not work. The screen will still rotate. Setting it to "natural" will lock the screen, but even if i disable screen rotation on android this will no longer rotate than. I want to only enable roation, if the OS enables rotation.