-
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
screen orientation lock does not work on iOS 12.x (ionic 4 with capacitor) #1061
Comments
It seems that inside CDVOrientation.m one of the methods returns an error "Error calling to set supported orientations" |
When will this fix be available? |
Should be on beta 12, was released on Friday |
I am having this issue as well. Is this fixed? |
I am still having this issue in ionic 4 using capacitor. works perfectly fine in IPhone but not working on IPad. Appreciate your help @mlynch @jcesarmobile |
Just found out that this error is back again event though the screen orientation lock seems to be working
Here is my current environment
|
I am also having this issue with Capacitor 2.1 and iOS. |
@pentabarf this was fixed in #2995 and released in https://github.com/ionic-team/capacitor/releases/tag/2.1.1 |
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. |
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/
Current behavior:
Screen Orientation is not locked on iOS 12.x
XCode console shows
Expected behavior:
Must lock the orientation
Steps to reproduce:
Related code:
In my component I invoke
Please note that i use capacitor to support native features. The same code works fine in ionic 3.9.2 with cordova (no error and screen orientation is locked)
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: