Vertical Mode

How to make the app only displayable in vertical mode?

Like it won’t let the user rotate the app.

put this in config.xml

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

or for landscape mode

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