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

Add an extra orientation event for the real orientation even when locked

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      On Android when you open the camera app for example and you turn it from portrait to landscape you can see the layout is locked to portrait, but the icons will turn.

      We would like to do the same in Cordova. But the current plugin does not fire the real orientation of the device once it is locked. Also the plugin fires the orientation from JS point of view instead of native point of view.

      For Android it should be possible to fire the "real" orientation even when locked to an orientation. See: https://stackoverflow.com/a/45437200/1800695

      Would it be a good idea to add / trigger a JS event from the native indicating the real orientation of the device so you can turn buttons in the HTML based on that event, but stick to the portrait layout?

      Attachments

        Activity

          People

            Unassigned Unassigned
            markdark81 Mark Veenstra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: