New Intel XDK Crosswalk (lock orientation)

0 favourites
From the Asset Store
Create your game with this complete pack of images and animations!
  • Hey everyone!

    I hope your Christmas went very well.

    The new Crosswalk export is very promising. It runs flawless for my app, however I can not figure out how to lock portrait orientation. Has anyone found out how?

    Thank you

  • Scirra didn't implement complete Screen orientation API because he was aware about current mobile devices don't support this API yet.

  • Joannesalfa

    Thanks for the heads up.

    I been looking into Intel's documentation for locking the screen in one of the modes. They have one line of JavaScript code that locks it to one orientation.

    Maybe the JavaScript execute plugin will work with this?

    I have yet to give that a try.

  • Would you link to this page here please?

  • I can not find/ forget the exact link, however I do have the source code:

    //lock orientation

    intel.xdk.device.setRotateOrientation("portrait");

    intel.xdk.device.setAutoRotate(false);

    Maybe this can be executed inside the external JS plugin?

  • The crosswalk release is beta and does not support the intel.xdk api's so the orientation API's cannot be used. It will be added in a future release.

    We are also investigating adding support for this API w3.org/TR/screen-orientation since C2 already knows how to use it.

  • Thank you for the heads up IntelRobert, I love your open communication with the community.

    I got another question, if you would like to answer. Currently, using the Crosswalk beta - the device still displays the Android toolbar, are you aiming to remove this and make the app display full screen?

    Some app developers support the toolbar idea being displayed (like myself) for the sense of being able to still control your device and use the app at the same time is nice.

    My suggestion is allow the apps to be displayed full screen, or allow the toolbar to be shown if this is possible?

    Again, thank you for your open communication.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • GameThirsty

    We would not get rid of the status bar at the top--it would not make sense for non-game apps. However, Yongsheng is thinking if we can make it an option.

  • IntelRobert

    That's good news!

    I am not sure if you had seen, yet, another question of mine on the separate forum for Crosswalk, so I will address it here also.

    Will you be adding notification system to Crosswalk?

    IE: User 1 requests to be a friend with user 2 on an app. Once user 2 accepts the request that user 1 had sent, user 1 receives a notification on their toolbar notifying that user 2 did accept the request.

  • and IntelRobert: about full screen support, in the tools of crosswalk, it has been enabled but just cli. For XDK, since it integrates with Crosswalk without the packaging tool, it's necessary to add the flag to enable/disable fullscreen in XDK itself.

    About the dynamical switch between full screen and tool bar, we're thinking how to support it. Maybe we could support fullscreen JavaScript API directly. I'll investigate it. thanks.

  • yongsheng

    That sounds great!

    Most of my apps will be supporting the toolbar function.

  • See the fullscreen discussion of Crosswalk here:

    https:[x]//crosswalk-project.org/jira/browse/XWALK-773

    please remove "[x]" from the above link because I don't have the permission.

  • Click-able link for users wanting to see discussion regarding Crosswalk and fullscreen:

    Linky:

    https://crosswalk-project.org/jira/browse/XWALK-773

  • Any updates to Locking Orientation?

  • Any updates to Locking Orientation?

    I am using the XDk lock orientation in Construct 2, but it doesn't work.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)