[
https://issues.apache.org/jira/browse/CB-6182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14010587#comment-14010587
]
olivier pepin commented on CB-6182:
-----------------------------------
<preference name="Orientation" value="default" /> has no effect and is still
ignored on cordova ios 3.4.1 (both iphone and ipad).
A workaround is to manually update the App plist :
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
There is a simple solution in phonegap to override the plist from the
config.xml
http://phonegap.com/blog/2014/01/30/customizing-your-android-manifest-and-ios-property-list-on-phonegap-build/
but this apparently does not work on cordova
> Incorrect config.xml Global Preferences
> ---------------------------------------
>
> Key: CB-6182
> URL: https://issues.apache.org/jira/browse/CB-6182
> Project: Apache Cordova
> Issue Type: Bug
> Components: Docs
> Affects Versions: Master
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
> Fix For: 3.6.0
>
>
> Link:
> http://cordova.apache.org/docs/en/3.4.0/config_ref_index.md.html#The%20config.xml%20File_global_preferences
> The fullscreen and orientation global preferences are not supported on iOS.
--
This message was sent by Atlassian JIRA
(v6.2#6252)