2

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
  • 1,022
  • 2
  • 14
  • 30
Asnim P Ansari
  • 1,467
  • 12
  • 28
  • 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,467
  • 12
  • 28
Leon Boon
  • 357
  • 2
  • 16