Well I wanted to add this as an edit, but it wasn't accepted, so I added my findings as an answer:
I managed to make it work with CrossWalk
on any device with Android 4+
on it and android webview
with a sony xperia
phone with android 5
on it. I wanted to add the things I've found:
If you want to use android webview
, your device must have android 5+
and your device must not be on gpu_blacklist
. There is no device list for gpu_blacklist
on the net that I can find, but there is a way to understand that your device is in the gpu_blacklist
or not. Open chrome, then type chrome://gpu
, then look at reset notification strategy field
. If it is 0x8252
then your device supports webgl
, if it is 0x0000
then your device is in the blacklist. So with android 5+
and your device not being on the gpu_blacklist
, you can use webgl
with android webview
.
If you want to use chrome instead of android webview
even with a device which is on gpu_blacklist
, you must use chrome version 37+. To check it, open chrome, type chrome://version
. After that open chrome, type chrome://flags
, in that page enable webgl
and override software rendering list
fields. With that you can use webgl
even with devices that on the gpu_blacklist
or with devices that has os below android 5
on them.
If your device can't provide above requirements, like mine, you can use CrossWalk
it works. However, the documentation is not well organized and you can't find much information other than its own documentation, in case you have problems with it. The reason CrossWalk
works is when you build apk
file you can send command line arguments like --ignore-gru-blacklist
. However as the documentation states if you use this on devices that are on the gpu_blacklist
, your application or the whole device might froze.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…