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

iOS unlock reverts earlier orientation instead of letting device do its job

    XMLWordPrintableJSON

Details

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

    Description

      Scenaio:

      1. Rotate phone to landscape 
      2. Force portrait by invoking `screen.orientation.lock('portrait')`
      3. Turn phone into portrait mode
      4. Release orientation lock using `screen.orientation.unlock()`

      Result:

      Plugin reverts last orientation and phone changes to landscape

      Expected result:

      Phone should decide by its own in which orientation it is after unlock so it should remain in portrait mode in the above example.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aszmyd Adam Szmyd
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: