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

Webview doesn't rotate many times on iOS from landscape to portrait #299

Closed
sagrawal31 opened this issue Feb 5, 2019 · 5 comments
Closed

Comments

@sagrawal31
Copy link

We are using Ionic 3 with cordova-plugin-ionic-webview 1.2.1 and apache/cordova-plugin-screen-orientation plugin (to change the orientation)

On iOS (mostly on iPhone7 & iPhoneX), when we switch from landscape to portrait, the orientation of the webview doesn't change. We can verify this from the following images:

When our app change from landscape to portrait and we open a page, this is the actual behaviour we are seeing:

image

(Keyboard should have been in landscape if orientation of device wasn't changed, but only webview looks froze in landscape)

While the original/expected behaviour is this (the above glitch fixes automatically & immediately if we perform any other operation, like, opening notification center, putting app to background and then back to foreground)

image

@ankit18singh
Copy link

+1

@jcesarmobile
Copy link
Member

I can't reproduce, can any of you provide a sample app?

@sagrawal31
Copy link
Author

Thanks for @jcesarmobile for testing on it. Although, I tried to reproduce this issue on a fresh app but it is not consistent. Like I mentioned, it's happening randomly and mostly on iPhoneX

@jcesarmobile
Copy link
Member

It’s probably the screen orientation plugin’s fault. As you already reported it there I’m going to close this one
apache/cordova-plugin-screen-orientation#43

@sagrawal31
Copy link
Author

sagrawal31 commented Feb 5, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants