> For the complete documentation index, see [llms.txt](https://docs.hello-lisa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hello-lisa.com/developers/guides/integration-guide/app-integration/android/storage.md).

# Storage

For **WebView** in native Android apps, storage must be enabled explicitly.

### Enable localStorage & sessionStorage

```kotlin
val webView = WebView(context)
webView.settings.domStorageEnabled = true
webView.settings.javaScriptEnabled = true
```

### Enable Cache for WebView

To persist storage across sessions and increase LiSA Player performance, caching must be enabled.

```kotlin
webView.settings.databaseEnabled = true
webView.settings.cacheMode = WebSettings.LOAD_DEFAULT
```

### Handle Storage Across Sessions

To persist `localStorage` across app restarts:

```kotlin
CookieManager.getInstance().setAcceptCookie(true)
CookieManager.getInstance().setAcceptThirdPartyCookies(webView, true)
```
