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

请问作者是不是存在web端调用的时候对象还没有注入好的情况 #4

Open
z102339 opened this issue Feb 14, 2022 · 4 comments

Comments

@z102339
Copy link

z102339 commented Feb 14, 2022

No description provided.

@hcanyz
Copy link
Owner

hcanyz commented Feb 14, 2022

目前 bridge js 是交给界面层自己注入的,比如在 com.hcanyz.zjsbridge.test.chromium.ChromiumWebViewJava.InnerCustomWebViewClient,所以会存在对象还没有注入好的情况。

@zhanghuibiao
Copy link

请问作者,这种场景如何规避呢,只能让H5在页面加载完之后才去调用原生方法吗

@hcanyz
Copy link
Owner

hcanyz commented Apr 30, 2024

目前基本上都是等待客户端注入完成,可以约定一个注入完成的 web 端方法,web 在这个方法里面执行后续任务。

@hcanyz
Copy link
Owner

hcanyz commented Apr 30, 2024

不推荐使用这个库了,它完成度很低,目前也没有精力去完善。

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