Ionic 2 - Screen Orientation


#1

I’m build an app with camera preview plugin and i want to know if the image is capture in landscape or portrait mode.
The problem is only when in device settings the user disabled the screen orientation and the device is only in portrait mode.

Any solution to know the image orientation?
Or there is way to detect if screen orientation in device are disabled?

Thanks for help!!!


#2

Did you tried ScreenOrientation in Ionic Native??


#3

First thing i did.
When the device is locked by the user settings the plugin not detect the correct orientation


#4

What does that mean?


#5

If in device settings the change orientation option are disabled so the plugin always will return “Portrait” mode


#6

Yeah but isn’t the display then locked in exactly that mode?


#7

Yes.
But when i use the camera preview plugin i want to know the orientation of the picture taken