Issue
I've been trying to inject some js into a webview in my app. Have been using
onReceivedTitle
method of WebChromeClient
since I want to execute the js while the page is loading.
This has been working until now. But recently, I observed that onReceivedTitle
is not called we reload the webpage, similar to window.location.reload
.
Firstly, I can't understand why it shouldn't be called. Or it should be and it's a bug?
Secondly, now that we know it's not called, where else can I inject by js?
Thanks.
Solution
Seems like this is a bug in chromium. I worked around this by injecting my scripts on onPageFinished
method of WebviewClient.
Answered By - Yash
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.