Skip to content

调用webview.goBack()时,不会回调bridge到js代码中 #10

@gwx7280

Description

@gwx7280

您好,在调用webview.goBack()方法回到上一页时,setupWebViewJavascriptBridge传入的回调function不会被执行,检查了一下Native代码好像是调用goBack时不会执行shouldInterceptRequest方法,不会执行这段逻辑
if (url.indexOf(WVJBConstants.BRIDGE_LOADED) > 0) {
mWVJBWebView.injectJavascriptFile();
} else if (url.indexOf(WVJBConstants.MESSAGE) > 0) {
mWVJBWebView.flushMessageQueue();
} else {
Logger.d("UnkownMessage:" + url);
}
return true;
请问有什么解决的方案吗,谢谢

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