Per platform configuration (config.xml) on PhoneGap Build
问题 I have a PhoneGap 3.1 application that I build remotely on PhoneGap Build. In my app there is a single config.xml file at the root of the project. This file contains: <preference name="orientation" value="default" /> However I would like to restrict the orientation to portrait mode in iOS. I've randomly tried : <preference gap:platform="ios" name="orientation" value="portrait" /> and <gap:platform name="ios"> <preference name="orientation" value="portrait" /> </gap:platform> but none of these