wcoder / Xamarin.Plugin.DeviceOrientation

Cross-platform plugin to work with screen orientation of mobile device.
MIT License
61 stars 19 forks source link

LockOrientation not working on tablet #12

Closed CarLoOSX closed 6 years ago

CarLoOSX commented 6 years ago

Hello, I do this:

        if (Settings.OrientationSwitch)
        {
            DeviceOrientations selectedOrientation = Settings.Orientation == 0 ? DeviceOrientations.Portrait : DeviceOrientations.Landscape;

            CrossDeviceOrientation.Current.LockOrientation(selectedOrientation);
        }

Is working perfectly on iOS mobile, but is not working when I deploy to tablet devices. Any idea?

Thank you!

wcoder commented 6 years ago

Hi, thanks for the feedback! Could you give me additional info?

CarLoOSX commented 6 years ago

Hello!

As far as I know is not working in iPad Air 2 and later. I think that is working in iPad 1 but I can not remeber so well.

I’m using your plugin in both platforms native and forms, in fact I’m using native forms switching between 2 platforms.

Thank you so much!

CarLoOSX commented 6 years ago

Is working. It was my fault !!! You should chek in info.plist: Requires fullscreen Thank you so much!