facebook

Lock screen orientation on iPad: CLOSED

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #326937 Reply

    bm93
    Member

    Hello guys, does everyone know how to lock the screen orientation? I went my app to run lying, if the user stand up the device, the app remains lying.
    Thank you.

    #326942

    Hi bm93,

    For native apps it is a configuration option on the build wizards. See the attached image.
    See attachment orientation.jpg

    For a webapp the only thing that you can do when user rotates device is to have the webapp present an error page or some kind of instructional page telling user that the app requires the device to be in a specific orientation. In the phoneui.postOrientationChange function in your <design-file>_custom.js file you could use a similar code that next as a template:

    if(newOrientation==-90){ //horizontal. 0 is for Portrait
    //code here
    }
    Attachments:
    You must be logged in to view attached files.
    #326944

    bm93
    Member

    Octavio, thank you so much, right on target, thats were my doubt.
    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Lock screen orientation on iPad: CLOSED

You must be logged in to post in the forum log in