Hanzofm opened a new issue #80:
URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/80


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   -screenOrientation is unlocked and the user rotate to landscape the device.
   
   -Users execute (when is already in landscape mode) :
   
   
`screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT_PRIMARY);`
   
   -the ui rotates to portrait
   
   Then:
   
   `screenOrientation.unlock();`
   
   The orientation should keep on Portrait mode
   
   ### What does actually happen?
   
   After locked ui into `this.screenOrientation.ORIENTATIONS.PORTRAIT_PRIMARY` 
being in landscape orientation if unlock the orientation being in vertical 
orientation the ui returns to landscape mode automatically.
   
   ## Information
   -Same code works fine on Android
   -Tested on iOS devices 12 and 14
   
   ### Environment, Platform, Device
   iOS devices 12, ,13, 14 versions
   
   
   
   ### Version information
   ```
    Ionic CLI                     : 6.12.3 
(/usr/local/lib/node_modules/@ionic/cli)
    Ionic Framework               : @ionic/angular 5.2.3
    @angular-devkit/build-angular : 0.1000.3
    @angular-devkit/schematics    : 10.0.3
    @angular/cli                  : 10.0.3
    @ionic/angular-toolkit        : 2.3.3
   
   
     Cordova CLI       : 10.0.0
     Cordova Platforms :  ios 5.1.1
     Cordova Plugins   : "cordova-plugin-screen-orientation": "3.0.2",
   ```
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to