Android
Documentation Update in Progress
We are currently revisiting and updating this section of our documentation to ensure it provides the most accurate and helpful information. Some content may be incomplete or outdated during this process.
Thank you for your patience! If you have any immediate questions, please don’t hesitate to contact our support team.
This guide explains how to embed the LiSA Player in an Android WebView and enable two-way communication..
Setting Up the WebView
Use the Android WebView
component to load the LiSA Player. Here’s a complete example:
Passing Safe-Area Insets
Android WebViews do not natively support safe-area-insets
. To address this, inject CSS variables for safe-area compensation into the LiSA Player:
Then adjust the creation of the webViewClient
to this:
Make sure to calculate topInset
, bottomInset
, leftInset
, and rightInset
using Android's safe area utilities.
Last updated