Is any chance to disable screen rotation (allow only vertical)? I would like to support only portrait view. And need it to work on android and ios.
Screen orientation lock For Android, open the AndroidManifest. xml file and within the activity element add 'android:screenOrientation="portrait"' to lock to portrait or 'android:screenOrientation="landscape"' to lock to landscape.
Select your project in the project navigator in Xcode and then click “General”, scroll down to “Deployment info” and uncheck the device orientations that you don't want.
Write the below code in manifest file
<activity
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize">
</activity>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With