I am trying to run @webviewjs/webview inside Termux on Android with an X11 server (e.g., XServer XSDL or VNC).
Currently, when I run a minimal WebView example:
export DISPLAY=:0
export WRY_BACKEND=x11
node test.js
I get a crash:
thread '' panicked at ... tao-0.34.5/src/platform_impl/android/mod.rs:93:42
called Option::unwrap() on a None value
fatal runtime error: failed to initiate panic, error 5, aborting
It seems the library detects Android and attempts to use the Android backend, which expects a full Android Activity. Termux does not provide an Activity, so it crashes, even though an X11 environment is available.
I am trying to run
@webviewjs/webviewinside Termux on Android with an X11 server (e.g., XServer XSDL or VNC).Currently, when I run a minimal WebView example:
I get a crash:
thread '' panicked at ... tao-0.34.5/src/platform_impl/android/mod.rs:93:42
called
Option::unwrap()on aNonevaluefatal runtime error: failed to initiate panic, error 5, aborting
It seems the library detects Android and attempts to use the Android backend, which expects a full Android Activity. Termux does not provide an Activity, so it crashes, even though an X11 environment is available.