Enable WebAssembly Threads in WebView of android

  android, android-webview, c++, emscripten, webassembly

I’m trying to run my Graphic Engine which is compiled to WebAssembly inside an android-webview in a clients application. When I debugged,I get an error saying ‘SharedArrayBuffer not supported’. My WebAssembly code requires Thread Support.

I’m able to the run the code in a desktop browser and in a mobile browser(by enabling WebAssembly Threads Flags). However, I couldn’t find any mechanism to enable experimental flags for the WebView. Is there any way to enable WebAssembly Thread support in WebView. I’m more interested in enabling the flag programmatically from the android app.

Source: Windows Questions C++