Create a Phonegap Build plugin lock the orientation of the device to either "landscape" or "portrait" orientation, for all oses. As AppMobi.device.setRotateOrientation(orientation); do: http://www.html5dev-software.intel.co...
- 15 Posts
- 0 Reply Likes
Posted 7 years ago
- 1206 Posts
- 42 Reply Likes
Hi Lorenzo,
There is not plugin that I know which does this function, however you can set your orientation to either portrait or lanscape inside the config.xml file.
for more information see config doc.
https://build.phonegap.com/docs/config-xml
Thanks
Hyginus
There is not plugin that I know which does this function, however you can set your orientation to either portrait or lanscape inside the config.xml file.
for more information see config doc.
https://build.phonegap.com/docs/config-xml
Thanks
Hyginus
- 8 Posts
- 1 Reply Like
I'm afraid this
preference name="orientation" value="portrait"
is not working on nexus 5
preference name="orientation" value="portrait"
is not working on nexus 5
- 6 Posts
- 0 Reply Likes
Did anyone the orientation lock working? I've changed the config.xml and to portrait as alfonsofonso has done and it doesn't work.
- 4116 Posts
- 192 Reply Likes
- 15 Posts
- 0 Reply Likes
Im still having this issue.. nothing in the link in the previous post has helped me.
Any ideas?
Any ideas?
- 15 Posts
- 0 Reply Likes
Scratch that, I had accidentally spelt "portrait" as "portait".. took days to find that mistake.
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers


