I want portrait orientation for my application, I tryed with:
AndroidManifest.xml:
<activity ... android:screenOrientation="portrait" ... android:configChanges="orientation| ..." />
and config.xml:
<preference name="orientation" value="portrait" />
That works perfectly on my android phone, but not on iPhone 4.
Thanks!
Open 'ProjectName'-info.plist file in Xcode.
In 'Supported interface orientations' array, keep support for Portrait mode only.
Like this-
then your phonegap app will run only in Portait Mode on iPhone.
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