Jump to content

Getting Babylon.js to work in Android using Visual Studio & Apache Cordova


ProfessorF
 Share

Recommended Posts

Visual Studio provides a nice environment for developing cross-platform apps. To do so you need to first install the Apache Cordova plug-in.  Once that's installed you can develop and debug your Babylon.js app using the Ripple Emulator which uses the latest Google Chrome).

The problem occurs when you want to deploy to an actual device, like an Android tablet or phone.  

If you're running anything less than Android Lollipop (< V5.0), your Babylon.js app won't work because it runs in a webview and older webviews to do not support WebGL.

The solution is to add CrossWalk to your Visual Studio project. In Visual Studio 15.0, the path is: Project > config.xml > Plugins > Core > Crosswalk Webview Engine (click the add button).

This didn't appear to work until I did a Rebuild All. After that, it deployed just fine.

FYI

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...