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

iPad orientations can no longer differ from iPhone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.1, 5.1.2, 5.2.0, 5.1.1, 5.3.2
    • None
    • cordova-ios
    • None
    • iOS

    Description

      The change introduced in 93ab6b61 means that iPhone and iPad orientation values will always be the same. Unfortunately, a universal iOS project defaults to a portrait orientation for iPhone and all orientations for iPad. Because the Cordova "default" for Orientation in config.xml clears all orientation settings, there is no way to get a standard behavior of having separate defaults for iPhone and iPad.

      Some ideas:
      1. Make "default" actually match what Apple uses as default because clearing out all the flags is not truly default behavior.
      <preference name="Orientation" value="default" />
      2. Add a platform-specific preference for iPad.
      <platform name="ios">
      <preference name="Orientation~iphone" value="portrait" />
      <preference name="Orientation~ipad" value="all" />
      </platform>

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              neumann Christoph Neumann
              Votes:
              8 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: