cordova - PhoneGap: Device orientation under iOS -


i created new phonegap app using following

phonegap create hello-world com.hello.world helloworld

with phonegap 4.2.0-0.25.0. however, not able change viewport orientation landscape on iphone or simulator. tried following 2 methods within config.xml.

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

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

i still not able use app in landscape mode. (of course disabled rotation locks on iphone.)

does know how solve this?

i tried , worked fine. sure set correct options in xcode this: xcode portrait changes

before build clear project ->

  1. cordova create orientationchange com.example.com orientationchange
  2. cd orientationchange
  3. cordova platform add ios
  4. cordova plugin add org.apache.cordova.console (you don't need orientation change it's useful debugging).
  5. cordova build

run project in xcode (6.3 actual version) , give try - should work!

let me know if need further help!


Popular posts from this blog