Douglas da Silva
Douglas da Silva

Reputation: 3

Ionic serve Landscape mode

I've start developing a app with Ionic (ionic start name blank), and in development I'm using the ionic serve --lab.

Everything is working fine, I already have done others app with Ionic before, but the problem is, this app need to work in landscape mode, and it need to remain in that orientation. And I can't do that.

I already changed the config.xml and added a new preference:

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

And also I tried to use this Cordova plugin: http://github.com/apache/cordova-plugin-screen-orientation

With no luck again. Everytime I start the serve function the app is served in portrait mode. There's a way I can develop my app (and serve it) in landscape mode?

Upvotes: 0

Views: 1085

Answers (1)

Andre Porto
Andre Porto

Reputation: 11

Using Chrome, you can type

ctrl + alt + i

and after that

ctrl + shift + M

You can choose any type of screen/mode.

Upvotes: 1

Related Questions