User locked orientation


#1

Is there any way to see if the user has locked the screen orientation in the device settings?


#2

I don’t know if there is way to check if screen orientation is locked or not.
but, if you want to get current orientation or if you want to lock/unlock orientation. then, you might find this plugin helpful:


#3

Unfortunately its not much use in my case. Im essentially recreating the orientation functionality with the javascript device motion and device orientation events + rotating in css.

This has given me a page i can open in landscape from portrait when orientation changes without the cordova rotating animation.

Only problem is it still works when the user has locked their device to portrait, UX guy is not too happy with that


#4

It is possible to check if screen orientation is locked or not in android by writing small cordova plugin.
but, as far as I’ve read you will not be able to check that in ios.