Answer the question
In order to leave comments, you need to log in
How to send object from addJavascriptInterface to JavaScript from WebView?
Hello. I work with android api, but not from java, but from JavaScript. In WebView I declared a method:
webs.addJavascriptInterface({qwe: 23},"api");
In JavaScript itself, the api object is created from the WebView, but it is empty, and there should be a qwe parameter with a value of 23. Does anyone know the solution? I write in JavaScript, not Java.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question