apache / apache/cordova-plugin-screen-orientation
With the 3.0.2 version, the turn orientation change for iOS on landscape mode
- Dominant language
- JavaScript
- Stars
- 219
- Forks
- 234
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
## Problem
With the 3.0.2 version, the turn orientation change for iOS on landscape mode
### What is expected to happen?
I have an ionic3 app in portrait mode, fixed in config.xml :
in 3.0.1, when using ionic native : this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.LANDSCAPE);
the app turn right, and we turn the device on left to have the top of the device on left
I use this orientation on a specific page, not on all
### What does actually happen?
in 3.0.2 :
the app turn left, and we turn the device on right to have the top of the device on right
## Information
Seems to be this PR who include the bug : https://github.com/apache/cordova-plugin-screen-orientation/pull/25
### Command or Code
this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.LANDSCAPE);
### Environment, Platform, Device
on iOS only, android still work well
### Version information
"@ionic-native/screen-orientation": "4.7.0",
"ionic-angular": "3.9.2",
"cordova-plugin-screen-orientation": "3.0.2",
## Checklist
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [x ] I included all the necessary information above
Contributor guide
Research direction
Reproduce the issue on iOS with this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.LANDSCAPE) using cordova-plugin-screen-orientation 3.0.2, then compare the behavior with 3.0.1. Read the referenced PR #25 first; done means the landscape direction matches the expected 3.0.1 behavior while Android remains unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript, objective-c
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100