Reputation: 341
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?
Upvotes: 2
Views: 5727
Reputation: 127
add
<preference name="orientation" value="portrait" />
in config.xml works for me
Upvotes: 4
Reputation: 5848
In your android manifest file change this android:screenOrientation="portrait"
to
android:screenOrientation="landscape"
.This will work fine for me
Upvotes: 1
Reputation: 1357
No you can't force that with ionic. You have to use your config.xml file.
Upvotes: 0