I am facing issue with native plugin of ionic (cordova-plugin-screen-orientation).

It works perfectly fine with iOS version greater than 12 and all android versions but when iOS version is less than 12 it fails.

I am working on ionic 3 project.

Actual Bug :

The bug is that the current orientation of a ios device displays landscape when it is in portrait mode and visa versa.

Expected behavior:

The expected behavior is that it displays landscape when it is actually in landscape mode and the same for portrait mode.

I have installed following plugin from ionic native :

ionic cordova plugin add cordova-plugin-screen-orientation

npm install --save @ionic-native/[email protected]

Any help is appreciated.

0 Answers