Guides
Platform communication

iOS message handler

2min

LiSA supports safe two-way communication between iOS WKWebView and the LiSA viewer app.

Receive messages from LiSA

LiSA exposes a MessageHandler named MessageFromLiSA. Using this message handler, iOS WKWebView can receive messages from LiSA as described in the Window postMessage API article.

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.

Example

Swift