Using local storage on Android webview

前端 未结 3 1160
栀梦
栀梦 2021-01-14 04:15

I am experimenting with Android code: I would like to store one value using HTML 5 local storage. For this exercise I\' using a page as simple as this one: http://www.w3s

3条回答
  •  独厮守ぢ
    2021-01-14 04:40

    If your app use multiple webview you will still have troubles : localStorage is not correctly shared accross all webviews.

    If you want to share the same data in multiple webviews the only way is to repair it with a java database and a javascript interface.

    This page on github shows how to do this.

    hope this help!

提交回复
热议问题