2 Replies Latest reply on Nov 15, 2016 5:09 AM by nickf19929465

    Can I set an iOS preference of 'target-device' to universal while controlling the 'orientation' preference differently on devices (iPad vs iPhone)?


      In my config.xml file I can set my target device to 'universal' so that it can run on both iPhone and iPad. However for the orientation preference I would like to select 'portrait' for iPhone and 'default' for iPad; so that on iPhones my app is locked in portrait orientation, and on iPads it can be in both landscape or portrait orientations.  Is this possible? How do I go about doing this? Would I have to create a separate PhoneGap app for this?


      My current my preferences are:

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

      <preference name="target-device" value="universal" />


      Thanks for your help!