Answer the question
In order to leave comments, you need to log in
Pass data from webview to application?
I have an authorization page through a webview, how can I pass data to the application upon successful authorization?
Answer the question
In order to leave comments, you need to log in
place the function you need on your site
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>WebView1</title>
<meta forua="true" http-equiv="Cache-Control" content="max-age=0"/>
</head>
<script type="text/javascript">
function testEcho(test){
alert(test);
}
</script>
</body>
</html>
return this.webview&&this.webview.injectJavaScript("testEcho("+JSON.stringify({...result,token:this.state.accessToken})+");")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question