-
Notifications
You must be signed in to change notification settings - Fork 229
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
Screen doesn't rotate many times on iOS from landscape to portrait #43
Comments
+1 |
This bug can be reproduced in a simple test case:
I'm thinking this solution may require changes to both this plugin and |
That's amazing @dpa99c |
I use a somehow hackish but working workaround in one of my projects. It consists of two parts. The first is a fork of this repo with adjusted code for iOS. The second is a little script being invoked during build as cordova hook. It has a bit of "works for me" character. With this being said, here it is: The plugin: https://github.com/codevise/cordova-plugin-screen-orientation And the hook-script:
Don't forget to adjust the path for the MainViewController to match your project structure and save it to The required
Then add the script as hook in the
Again, this doesn't claim to be a solution, just a way to "get it done". |
@sagrawal31 - Can You just try installing plugin from here . |
Any news on this issue? It still happens in our app.
|
On
iOS
(mostly on iPhone7 & iPhoneX), when we switch fromlandscape
toportrait
, the orientation doesn't change. There are two behaviour that we noticed:Example of behaviour2 (buggy) when navigating to this page from a landscape page:
While this should be the page:
The same happens with the behaviour 1.
We tried to identify the pattern but nothing helped. We also tried to add a delay in between changing the orientation and navigation between the page but the behaviour is same.
The text was updated successfully, but these errors were encountered: