Answers for "ionic 5 make app portrait only"

0

ionic 5 make app portrait only

If you want to restrict to portrait mode only on all devices 
you should add this line to the config.xml in your projects root folder.

<preference name="orientation" value="portrait" />

After that, please rebuild the platform by typing below text in command line:

ionic build
Posted by: Guest on January-26-2021

Code answers related to "ionic 5 make app portrait only"

Browse Popular Code Answers by Language