-
Notifications
You must be signed in to change notification settings - Fork 570
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
发现问题 #2
Comments
能不能给出你具体的测试代码, 关于回调可以再详看下ReadMe中“关于异步回调”这条 ,如果使用的是同一个JsCallback,需要在第一次apply前setPermanent(true)。 |
网页调用这个方法,文档都仔细读了,就是和例子不一样的是我没有延迟执行回调,我想这应该不会有问题的吧 |
我按照你的Java代码测试是可以的,我的网页端的js调用代码如下:
成功在控制台输入了success。 你的网页端的js调用代码是怎样的? |
FKAPP.iknowAlertDialog('标题', '收到知道了', function (msg) { |
alert里面是计算结果是一个整型值,你的java注入类里面实现了类似 public static void alert (WebView webView, int msg) 这样的方法吗? 建议你把alert换成console 调试下,另外其他注入方法调用正常吗? |
试了很多种,也这么写过: }); |
在studio log 里打印出了这个E/Web Console﹕ Uncaught ReferenceError: HostApp is not defined at null:1 |
打开网页时的后台log: |
点击调用后的log: |
看日志,明白了, 是library代码库的自定义命名问题。你今天可以先把FKAPP换回HostApp开测试,明天提交个commit修复。感谢提前发现😊 |
@brucewuu520 昨天的问题已修复,望知悉,004006e 。 |
@pedant ok thanks |
关于网页调用玩Java后回调js的问题,例如弹出个dialog点击确定后后回调js,但却不成功
The text was updated successfully, but these errors were encountered: