Powered by Blogger.

CORDOVA/ANDROID- LOCKING SCREEN ORIENTATION TO “PORTRAIT OR LANDSCAPE”


Update the config.xml File which is in your project folder, above www.
Add the line:-
<preference name="orientation" value="portrait" />
Then build and run your project & there will be no Orientation Change.
In place of “portrait”, you can use “landscape”.

No comments