iPad Landscape Enabler Plugin now disabled

  • 1
  • Announcement
  • Updated 6 years ago
The iPad Landscape enabler plugin was disabled by its submitter, in favour of using the new config-file element to modify the iPad supported orientations.
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes

Posted 6 years ago

  • 1
Photo of Eddy Verbruggen

Eddy Verbruggen, Champion

  • 375 Posts
  • 86 Reply Likes
Thanks for announcing this Ryan, it'll probably save a few users a headache.
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
No problem -- looks like it managed to gain a good amount of adopters, so nice work and thanks for the contribution to the community!
Photo of Luiz Fernando Reis

Luiz Fernando Reis

  • 7 Posts
  • 0 Reply Likes
Nice, but I wanted portrait/landscape on iPad and only landscape at iPhone (not portrait). Reading the docs it seens that is not possible to achieve this with this plugin, could you update it so we can choose what orientation we want at iPhone?

And how do it works with Android smartphones / tablets?

Thanks! :)

Edit: I read it so fast that I didn't realize it was disabled. Can I set different orientations for iPhone / iPad through the new config-file element?
Photo of Eddy Verbruggen

Eddy Verbruggen, Champion

  • 375 Posts
  • 86 Reply Likes
Well, the plugin is gone, so you need to use the new gap:config-file feature to achieve your goals.

You could set < preference name="orienation" value="landscape" />

And add this as well to add portrait mode for iPad:



<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>



This has nothing to do with Android. On Android you can only choose landscape, or portrait, or both for all devices at once (AFAIK).
Photo of Luiz Fernando Reis

Luiz Fernando Reis

  • 7 Posts
  • 0 Reply Likes
Thank you very much! :)

I guess there is no way of achieving that on Android, too... so many devices :S
Photo of Eddy Verbruggen

Eddy Verbruggen, Champion

  • 375 Posts
  • 86 Reply Likes
This plugin should help you out on Android: https://build.phonegap.com/plugins/405
Photo of Luiz Fernando Reis

Luiz Fernando Reis

  • 7 Posts
  • 0 Reply Likes
Hmm interesting, will give it a try. Thanks