apache / apache/cordova-plugin-screen-orientation
iOS IPAD always landscape-secondary when rotate even use landscape
- Dominant language
- JavaScript
- Stars
- 219
- Forks
- 234
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
## Problem
### What is expected to happen?
can rotate landscape-primary and landscape-secondary by user on IPAD
### What does actually happen?
I used "portrait" rotate -> landscape but IPAD always rotate to landscape-secondary. Do not follow by user on IPAD. It seem sensor did not detect which orientation by user
## Information
### Command or Code
screen.orientation.lock("portrait")
clicked button go other screen
screen.orientation.lock("landscape")
### Environment, Platform, Device
on IPAD
### Version information
Cordova Plugins
Android platform
IOS platform
## Checklist
- [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
Contributor guide
Research direction
Reproduce on an iPad using the two screen.orientation.lock("portrait") and lock("landscape") calls described in the issue, then trace the plugin's iOS orientation-lock handling. Done means switching to landscape allows the user-controlled landscape-primary or landscape-secondary orientation instead of always selecting landscape-secondary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100