1

I want to open a web view inside an android app and post a message to that window like we do window.postMessage in the browser.

How can we do that with web views inside an Android app?

Pritesh
  • 838
  • 1
  • 7
  • 27
Asnim P Ansari
  • 1,003
  • 9
  • 21
  • look into this post [run-javascript-code-in-webview](https://stackoverflow.com/questions/32163517/run-javascript-code-in-webview) – Sadeq Aramideh Aug 13 '19 at 07:36

1 Answers1

2

Just call

WebView.loadUrl("Javascript:window.postMessage")

if i'm not mistaken.

Asnim P Ansari
  • 1,003
  • 9
  • 21
Leon Boon
  • 307
  • 1
  • 14