-
Notifications
You must be signed in to change notification settings - Fork 1k
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
bug: Keyboard not respecting that screen is locked in portrait mode when rotating iPhone #2977
Comments
Here's a repo that reproduces the issue with latest Capacitor (2.1): |
I've sent a PR that fixes the issue, but I would recommend not using If what you need is that your app only support portrait orientation, instead of using |
@jcesarmobile Thx a lot! We are excactly using the |
@jcesarmobile Unfortunately the issue hasn't been resolved. I've updated the repo, that reproduces the issue to latest Capacitor (2.1.1) but the issue still persists: |
@jcesarmobile Will you reopen the issue? Just to be clear @jakobe and me are working on the same project. |
@sorenfruergaard / @jakobe - please see the ZD ticket you have open with me. |
Hi @jcesarmobile, I'm very sorry, apparently it was a false negative because of a cache in my Xcode. So: Problem solved! Thanks again for the quick fix and release! |
I have an experience like this problem but with orientation change on Android, after some working days, I knew the issue comes when the plugin "es6-promise-plugin" is added automatically by capacitor, so if you remove it manually, Capacitor still add it automatically by update command.I think " es6-promise-plugin" is not compatible with some Cordova plugins which is used by Capacitor. for more, if you remove all Cordova plugins by npm uninstall command, the "es6-promise-plugin" is not removed, finally check this problem for using any orientation change plugins like "platform" and "cordova-plugin-screen-orientation". |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
npx cap doctor
output:Affected Platform(s)
Current Behavior
After upgrading to version 2 of capacitor the keyboard is not respecting that the screen orientation is locked in portrait mode and rotates to horizontal.
Expected Behavior
The keyboard should also be constrained to portrait mode when the screen is locked in portrait mode.
Sample Code or Sample Application Repo
Reproduction Steps
Other Technical Details
We have tried using both version 2.0.2 and 2.1.0 of capacitor and this issue is in both.
The version we used to use was 1.5.1 which worked without errors
npm --version
output:node --version
output:pod --version
output (iOS issues only):Other Information
apache/cordova-plugin-screen-orientation#62
The text was updated successfully, but these errors were encountered: