Page orientation for tablet app

1
Hi, I would like my tablet app to only be available landscape and not react to the turning of the device. I'm still working out a lot of the mobile/tablet app options and functions on the modeler but if anyone could point me in the right direction that would be great. Christina
asked
1 answers
3

If you working with a wrapped app with phonegap you can use the preference orientation: Phonegap documentation

You have to modify the config.xml before building your app with phonegap.

orientation Device orientation; possible values are default, landscape, or portrait. Please note that default means both landscape and portrait are enabled. If you want to use each platform's default settings (usually portrait only), remove this tag from your config.xml file.

Example:

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

answered