Ionic 2 - Screen Orientation

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!!!

Did you tried ScreenOrientation in Ionic Native??

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

What does that mean?

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

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

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