Hi,
I want to my app work only vertically.(all pages)
Can I do this?
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…
After that, please rebuild the platform by typing below text in command line:
ionic build
Add this in your config.xml:
<preference name="Orientation" value="portrait" />
this will force the app to run only in portrait mode (thus tilting your phone won’t rotate your screen). It will only work on the device off course.
Hello, how are you ?
one question dude, when you use this line is necesary add the plugin ScreenOrientation? and the lastone what command i use for the line to make it work?
Hello, how are you ?
one question dude, when you use this line in the config.xml, is necesary add the plugin ScreenOrientation? and the lastone what command i use for the line to make it work?