You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "olivier pepin (JIRA)" <ji...@apache.org> on 2014/05/28 02:34:02 UTC

[jira] [Commented] (CB-6026) Orientation preference is ignored on iOS

    [ https://issues.apache.org/jira/browse/CB-6026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14010582#comment-14010582 ] 

olivier pepin commented on CB-6026:
-----------------------------------

<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 ...

> Orientation preference is ignored on iOS
> ----------------------------------------
>
>                 Key: CB-6026
>                 URL: https://issues.apache.org/jira/browse/CB-6026
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, iOS
>            Reporter: Andrew Grieve
>            Priority: Minor
>
> [Docs|http://cordova.apache.org/docs/en/edge/config_ref_index.md.html] say that this should work:
> {quote}
>  <preference name="Orientation" value="landscape" />
> {quote}
> But it doesn't.



--
This message was sent by Atlassian JIRA
(v6.2#6252)