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.
ryan, Developer
- 1538 Posts
- 132 Reply Likes
Posted 6 years ago
Eddy Verbruggen, Champion
- 375 Posts
- 86 Reply Likes
Thanks for announcing this Ryan, it'll probably save a few users a headache.
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!
- 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?
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?
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:
This has nothing to do with Android. On Android you can only choose landscape, or portrait, or both for all devices at once (AFAIK).
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).
- 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
I guess there is no way of achieving that on Android, too... so many devices :S
Eddy Verbruggen, Champion
- 375 Posts
- 86 Reply Likes
This plugin should help you out on Android: https://build.phonegap.com/plugins/405
- 7 Posts
- 0 Reply Likes
Hmm interesting, will give it a try. Thanks
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers

