You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sven Tobback (JIRA)" <ji...@apache.org> on 2017/07/31 15:08:00 UTC

[jira] [Updated] (CB-13132) iOS: Locking orientation doesn't work after pause/resume

     [ https://issues.apache.org/jira/browse/CB-13132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sven Tobback updated CB-13132:
------------------------------
    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]

  was:
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 wiggling the d

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


> iOS: Locking orientation doesn't work after pause/resume
> --------------------------------------------------------
>
>                 Key: CB-13132
>                 URL: https://issues.apache.org/jira/browse/CB-13132
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-screen-orientation
>            Reporter: Sven Tobback
>            Assignee: Vishal Mishra
>
> 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]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org