I have some code that uses WebGL (using the three.js library). Everything works fine in iOS but it won't work on Android. I've only tested it on a Samsung Galaxy S5 (Android 5.0) and a Samsung Galaxy S3 (Android 4.4.4). The code isn't complicated, mostly based on Google demo code.
The error I get is:
[chromium] "Error creating WebGL context." at file: js/three.js (25050)
[chromium] "Uncaught TypeError: Cannot read property 'getExtension' of null" at file: js/three.js (25054)
I've turned on Android Hardware Acceleration (and tried with it off). I also tried setting Cordova 4.0.0 and 3.7.0 setting in AppBuilder.
I've tried going to the Chrome app and WebGL is enabled - I looked at chrome://flags and chrome://gpu and can't see any problems. I did this on both the Chrome app (Chrome version 46.0.2490.76) and the default browser app (Chrome 34.0.1847.76). I also tried changing Cordova's WebView to Crosswalk.
I've played with just the web browser (Chrome) and some WebGL demo pages, some work, some don't.
I also tried the same code on a web page running on the Chrome browser and it works. So I'm sure the code is right (and the fact that everything works on iOS), and that the phone does support WebGL because it works in a browser.
So what I really need is a way to get Cordova (using AppBuilder) to use WebGL on Android. Any ideas?