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

Add support for platform specific orientation

    XMLWordPrintableJSON

Details

    Description

      Hi,

      I want to set Manifest.xml activity with android:screenOrientation="nosensor"

      http://developer.android.com/guide/topics/manifest/activity-element.html#screen

      In cordova doc :
      Additionally, you can specify any platform-specific orientation value if you place the <preference> element within a <platform> element:

      So, I do it in config.xml

      <platform name="android">
      <preference name="orientation" value="nosensor" />
      </platform>

      but on build :
      Unsupported global orientation: nosensor. Defaulting to value: default

      Attachments

        Activity

          People

            vladimir.kotikov Vladimir Kotikov
            dcz.switcher dcz.switcher
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: