Control how your mobile application responds to device rotation. Nativine allows you to lock your app orientation to Portrait, Landscape, or Auto-Rotate across Android and iOS devices.
1. Overview & Supported Orientations
Setting the correct orientation constraint ensures your UI layout renders as intended:
- Portrait (Default): Locks the app in vertical mode. Standard setting for ecommerce, blogs, social apps, and utilities.
- Landscape: Locks the app in horizontal mode. Ideal for video streaming, games, and dashboard terminals.
- Auto-Rotate (Sensor): Allows the UI to rotate automatically based on physical device accelerometer orientation.
2. No-Code App Builder Setup Guide
âš¡ Nativine Builder Feature: Screen Orientation Locking is integrated directly into the Nativine native app engine. Configure options natively in the App Builder under Add-ons & Plugins > Native UI.
Nativine App Builder Configuration
- Open the Nativine App Builder at /web-to-app-converter-pro.
- Click Add-ons & Plugins in the left builder menu and locate Screen Orientation Locking.
- Toggle Screen Orientation Locking to ON (or click Enable), then click Config.
- Configure your required settings, permissions descriptors, or target web parameters.
- Click Save Config and navigate to the Builds tab to compile your mobile application.
3. Frequently Asked Questions (Q&A)
Can orientation be unlocked for video playback only?
Yes. If your app is locked to Portrait, you can call the JS Bridge nativine.ui.setOrientation('landscape') when launching full-screen videos, then lock back to portrait when exiting.
Is orientation enforced in AndroidManifest.xml?
Yes. Nativine sets the android:screenOrientation attribute in AndroidManifest.xml and configures iOS UIInterfaceOrientationMask accordingly.
💡 Programmatic Control via JS Bridge:
To lock or unlock orientation dynamically inside JavaScript during video playback or games, see the
Screen Orientation API Reference.