I wrote an app by using ionic framework. But it opens in portrait mode. I want it to open in landscape
mode. In phonegap, we have a global config.xml file where we can use
<preference name="orientation" value="landscape" />
. Is there any similar method for ionic?
In your android manifest file change this android:screenOrientation="portrait"
to
android:screenOrientation="landscape"
.This will work fine for me
No you can't force that with ionic. You have to use your config.xml file.
add
<preference name="orientation" value="portrait" />
in config.xml works for me