Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gwx7280 opened this issue Nov 4, 2016 · 3 comments
Open

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

gwx7280 opened this issue Nov 4, 2016 · 3 comments

Comments

@gwx7280
Copy link

gwx7280 commented Nov 4, 2016

您好,在调用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;
请问有什么解决的方案吗,谢谢

@zhuyonghao134123
Copy link

相同的问题,求解

@jrt324
Copy link

jrt324 commented Apr 19, 2017

我也遇到同样的问题

@jrt324
Copy link

jrt324 commented Apr 19, 2017

这个问题可以解决吗?有解决办法吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants