Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orientation.lock() not works as intended #42

Closed
onurkose-uma opened this issue Dec 30, 2018 · 2 comments
Closed

Orientation.lock() not works as intended #42

onurkose-uma opened this issue Dec 30, 2018 · 2 comments

Comments

@onurkose-uma
Copy link

I've tested it only on Xcode emulator.
When the initial device orientation is "landscape-secondary", and if you fire the orientation.lock('landscape'), it does not lock to the landscape-secondary, screen flips and locks to landscape-primary.
If I change the emulator device orientation to any of the landscape modes later, the app conforms new landscape orientation.

Anuj-logiciel added a commit to Anuj-logiciel/cordova-plugin-screen-orientation that referenced this issue Jul 30, 2019
@breautek
Copy link
Contributor

I believe this is caused by the plugin's usage of [[UIDevice currentDevice] setValue:value forKey:@"orientation"]; which is actually a readonly property.

https://github.com/apache/cordova-plugin-screen-orientation/pull/102/files corrects this, so I believe it will be fixed by that PR.

@breautek
Copy link
Contributor

Closing as duplicate of #80

@breautek breautek closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants