qwertymaster
qwertymaster

Reputation: 341

Making ionic to open apps in landscape mode

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

Answers (3)

Alexniver
Alexniver

Reputation: 127

add

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

in config.xml works for me

Upvotes: 4

shamon shamsudeen
shamon shamsudeen

Reputation: 5848

In your android manifest file change this android:screenOrientation="portrait" to android:screenOrientation="landscape".This will work fine for me

Upvotes: 1

dbaq
dbaq

Reputation: 1357

No you can't force that with ionic. You have to use your config.xml file.

Upvotes: 0

Related Questions