Guides
Platform communication

Android message handler

1min

LiSA supports safe two-way communication between Android WebView and the LiSA viewer app.

Receive messages from LiSA

LiSA exposes a MessageHandler named MessageFromLiSA. Using this message handler, Android WebView can receive messages from LiSA as described in Window postMessage API.

Send messages to LiSA

To send messages to the LiSA WebView, native JavaScript window object method postMessage must be invoked via JavaScript injection, passing the desired payload.