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

iOS: Locking orientation doesn't work after pause/resume

    XMLWordPrintableJSON

Details

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

    Description

      When rotating an iPhone to landscape (window.screen.orientation.lock('landscape')), then pause and resuming the app, and rotating the device back to portait (window.screen.orientation.lock('portait')), the app stays in landscape.

      Sample: https://wetransfer.com/downloads/5c7fe8f1a82b9d085252e4ad78f7727f20170731143343/19fbca890a937721c9e724f5680f71b620170731143343/05d394

      Steps to reproduce:

      1. Open app
      2. Click "rotate landscape" to set orientation to landscape
      3. Pause app
      4. Resume app
      5. Click "rotate portrait" to set orientation to portrait
      6. Nothing happens, app stays in landscape
      7. Only after physically "wiggling" the device landscape/portait, the app goes into portrait mode.

      Same steps without pause/resume doesn't give any issues.[^attachment-name.zip]

      Attachments

        Activity

          People

            vishalmishra Vishal Mishra
            SvenT Sven Tobback
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: