I am working on ionic/Cordova, I introduced this to androidmanifest.Xml however this didn't paintings for me and the app is still displaying in both methods
You can try this:-
Cordova plugin to set/lock the screen orientation in a common way for iOS, Android, WP8 and Blackberry 10. This plugin is based on an early version of Screen Orientation API so the api does not currently match the current spec.
or try this code in xml config:-
<preference name="orientation" value="portrait" />
Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.
Follow us on:
Subscribe to get latest updates