We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Mobile device view

Home Forums General Questions Mobile device view

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #60186
    cralex75
    Customer

    Hi, I want to set the automatic full screen and horizontal view only if on a mobile device, can anyone help me? can this be done directly from the puzzle?

    #60190
    cralex75
    Customer

    I solved part of the problem using “init fullscreen”
    I can’t create a command to activate Screen Orientation

    Attachments:
    You must be logged in to view attached files.
    #60214
    kdv
    Participant

    You can’t force the landscape orientation without a user interaction. Also you can’t force the fullscreen mode without a user interaction. All you can is locking after requesting the fullscreen mode manually
    screen.orientation.lock('landscape');

    Something like this https://v3d.net/euq

    But the fullscreen API for divs is not supported in iOS and it won’t work…

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #60222
    cralex75
    Customer

    thanks, it works very well :good:

    #60223
    kdv
    Participant

    Yeap, it will work if your app is supposed to be used only in Android. It won’t work in iOS (any browser), it won’t work in FireFox for Android.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.