I have created a javascript 3d game using three.js. Now i want to convert that to android apk. But unfortunately android's webview is not supporting WebGL. Is there anyway to convert that to apk
Asked
Active
Viewed 1,646 times
2 Answers
2
You can use Cordova to port your javascript game to mobile platforms. Check it out!
Using npm you need to install cordova globally first by:
npm install -g cordova
Once the installation finishes, you can create a project by:
cordova create mygame
Then you can cd mygame
to the directory and add platforms to your project.
cordova platform add android
Put your game code in the index.html file and to run the game execute:
cordova run android

sercanturkmen
- 127
- 2
- 10
-
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/low-quality-posts/16861873) – joanolo Jul 28 '17 at 14:42
-
1Edited the answer to provide information about how to setup an android cordova project. – sercanturkmen Jul 28 '17 at 18:13
1
WebGL should be supported in Android 5.0 and up.
Enabling WebGL support for Android WebView
Perhaps you are trying on a emulator which doesn't have WebGL support:

Morrison Chang
- 11,691
- 3
- 41
- 77