#How to lock android screen rotation
2 messages · Page 1 of 1 (latest)
there's a screen.orientation.lock() js method which should work on android but not on iOS.
2 messages · Page 1 of 1 (latest)
Hi, I'm using Tauri v2 and I need to know how to lock the screen.
I tried modifying the AndroidManifest.xml, but it's not ideal since we can't run npx tauri android init if the src-tauri/gen/android folder already exists.
Does anyone have a solution?
there's a screen.orientation.lock() js method which should work on android but not on iOS.