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

BridgeHelper 这个是咋用的?直接用 demo里面的 CustomWebView 替换 BridgeWebView Demo 都报错 #266

Open
PandaQAQ opened this issue Feb 7, 2023 · 3 comments

Comments

@PandaQAQ
Copy link

PandaQAQ commented Feb 7, 2023

No description provided.

@Heart-Beats
Copy link

今天拿最新的 demo 也作了此修改,运行异常,报错信息:
Uncaught TypeError: Cannot read properties of undefined (reading 'callHandler')

因为不懂 JS,不知道如何修改,同时拿最新的 demo 直接 loadUrl 基于 1.0.4 版本开发的前端页面地址,页面直接加载失败

@yomigatz
Copy link

同问,是否可以基于新版本更新一下README,和使用BridgeHelper的示例,非常感谢

@thorjay
Copy link

thorjay commented Jul 28, 2023

同问,是否可以基于新版本更新一下README,和使用BridgeHelper的示例,非常感谢

目前CustomWebView和BridgeHelper里,与BridgeWebview的部分代码功能实现不同步,所以直接用Demo跑是不可行的;在注册函数上BridgeWebview是使用@JavascriptInterface,而BridgeHelper是应该还是用shouldOverrideUrlLoading(),然后还有其他一些小问题;

如果想直接使用CustomWebview来运行Demo和查看示例,可以参考解决CustomWebview当前demo无法使用的问题 #270

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

4 participants