Liveview in Android webview compatibility

Hi,
I was wondering if I can use a LiveView website in an android webview.

My initial tests seems to point to a “no” but I’m not an android developer (nor a LiveView expert) so maybe there’s just a little piece missing to make it work.

Here’s a test I made (that can quickly be reproduced)

It fails, like my project, with an "Uncaught typeError: Cannot read properties of null (reading 'removeItem')" ...

If someone have an idea… (in the mean time, I’ll keep tweaking the webview settings to see if something makes it work :smiley: )
Thanks !

EDIT : setDomStorageEnabled seems to be needed, I’ll keep investigating :smile:

I had a good experience with a GeckoView. It allows you to store the state of the WebView and return to it. WebViews will always re-initialize when they are resumed.