In my case, I use.
webview.evaluateJavaScript("") method can not use other third party javascript like jquery,angular
so i use window.postMessage('','') like this
webview.evaluateJavaScript("window.postMessage('param', '*')")
and in html file,
window.addEventListener("message", function(event) {
fn_start(event.data)
});
to solve this problem.
hope help other people.
Topic:
Safari & Web
SubTopic:
General
Tags: