Skip to content

android4.4以下执行methodCallJavascript.invoke(browserFrame, script);报错:Fatal signal 11 (SIGSEGV) at 0x00000a84 (code=1) #1

@jerryGu

Description

@jerryGu

你好,感谢开发这个project。我在4.4以下使用,程序进入stringByEvaluatingJavaScriptFromString方法后,在methodCallJavascript.invoke(browserFrame, script)处报错。请帮忙解决一下。多谢。

下面是我的WebViewClient
class MyWebViewClient extends WVJBWebViewClient {
public MyWebViewClient(WebView webView) {

        // support js send
        super(webView, new WVJBWebViewClient.WVJBHandler() {

            @Override
            public void request(Object data, WVJBResponseCallback callback) {

// Toast.makeText(getActivity(), "ObjC Received message from JS:" + data, Toast.LENGTH_LONG).show();
callback.callback("Response for message from ObjC!");
Intent intent = new Intent(getActivity(), NewsDetailActivity.class);
intent.putExtra("url",data.toString());
startActivity(intent);
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions