Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6434

Default .xcodeproj doesn't change orientation on iPhone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.4.0
    • None
    • cordova-ios
    • None
    • OSX 10.9.2, Cordova cli 3.4.0-0.1.3

    Description

      I'm not sure whether this is a bug in the platforms add script or some weird configuration error on my side. I have a phonegap project with some settings in the root www/config.xml:

      <preference name="phonegap-version" value="3.3.0" />
      <preference name="Orientation" value="default" />
      ..etc.

      When I create and test the ios platform:

      $ cordova platforms rm ios
      $ cordova platforms add ios
      $ cordova emulate ios

      It does not respond to the device rotation events on the iPhone hardware, but does respond to the same events if I set the hardware to the iPad. Looking a little deeper, I see that the .xcodeproj file has all device orientations checked under Deployment Info for the iPad, but only Portrait for the iPhone. Selecting all the device orientations and calling:

      $ cordova emulate ios

      Now the iPhone responds to the orientation changes there as well.

      Removing and re-adding the ios platform resets this setting so that only the iPad responds to the orientation changes.

      So... I guess my question is whether there is something that can be tweaked by a preference in the www/config.xml, or a bug maybe in the platforms add scripts? Any info would be appreciated. Thanks!

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              Erik B Erik Brommers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: