Lock orientation to portrait with Capacitor/Cordova
How can I lock my app’s orientation to only be in portrait mode? I’m building an Android app using Capacitor/Cordova. Can someone perhaps link me to the documentation?
Nevermind, I solved it. Was as easy as adding “<preference name=“Orientation” value=“portrait” />” to the Cordova config.xml file
Thank you! This worked for me.