javascript - Cordova 3.x forcing screen orientation at run-time IOS -
this question has answer here:
- phonegap - forcing landscape orientation 5 answers
i'm building app cordova forcing screen orientation @ runtime on pages crucial. found plugin com.phonegap.plugins.orientationlock works on android devices can't find solution ios... have solved issue? thank you
updated response:
i found plugin enables this: https://github.com/adlotto/cordova-plugin-recheck-screen-orientation.
tested , verified on iphone 5 ios 7.1 - hooray!
original response:
i haven't yet found way force on ios, it's possible @ least choose orientations allowed dynamically @ run-time.
that requires global shouldrotatetoorientation(degree) function returns true or false based on device's new orientation. more details here: https://groups.google.com/forum/#!topic/phonegap/xw7qsjvcf5i
you could, theoretically, ask user rotate device when needed, , "lock" in place disallowing further rotations. (not ideal solution, of course.)
Comments
Post a Comment