-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Auto rotate to landscape in iOS #773
Comments
Did you find any solution / workaround for this bug ? |
I resorted to using a regular iFrame, unfortunately. |
Hey, We are having the same issue here as well. |
@weiz18 thanks, it worked. In the meantime I found also another less robust workaround: |
Would be nice to get some feedback from the developers of cordova-plugin-inappbrowser on this. |
For any future lurkers who don't want to fork, I managed to solve this by creating a little Swift extension class in the XCode project. Add this to the swift file:
|
This isn't a plugin issue but a Capacitor issue, the problem doesn't manifest in Cordova apps. This PR in Capacitor should fix the issue ionic-team/capacitor#5070 |
Bug Report
Problem
What is expected to happen?
on iOS (iPhone) I expect to open an inAppBrowser in portrait mode and have it rotate to landscape mode when the phone rotates
What does actually happen?
The status bar does rotate but the actual inAppBrowser stays fixed in portrait mode
Command or Code
Environment, Platform, Device
iPhone 5s iOS 12.4.8
Version information
xcode 11.7
cordova-plugin-inappbrowser: 4.0.0
Checklist
Demo project is at: https://github.com/spassvogel/iab-test
The text was updated successfully, but these errors were encountered: