Android Crash When I use WebView setOnJSCallback

Hi,
I try using setOnJSCallback of WebView component. But, when I test on device, it make my app crash
WebView Reference · Cocos Creator

Here is my system:
Cocos Creator: v3.3.2
NDK: 21.3.6528147
WebView Internal Pages: localhost



internal-page

Thanks. I can ask engineering to review this topic.

This is a bug, which requires modification of the engine source code.
File path:
3.3.2\resources\resources\3d\enginenative\cocos\platform\android\java\src\com\cocos\lib\CocosWebView.java


CocosWebView.zip (2.3 KB)

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.