atian25
atian25

Reputation: 4256

Are there any known localstorage compatibility issues with android webview

We will develop a hybrid app, using localstorage as http cache , and it will shared with multiple webview.

so are there any known localstorage compatibility issues ?

android 2.1 ~ 4.x (most for 2.3 ~ 4.x)

Upvotes: 0

Views: 423

Answers (1)

Ivaylo Toskov
Ivaylo Toskov

Reputation: 4021

First of all I don't think that the local storage could be a suitable solution for caching, because it's funcionality only includes the possibility to save/retrieve/delete key/value pairs, but I don't know exactly what your purposes are.

About the compatibility I would say that the local storage of the android's WebView does not function very well, because it is not persistent across the different tabs/windows, so actually it becomes useless in my opinion. If you want to share the same data in multiple webviews the only way is to use a java database and a javascript interface. There is a implementation on github, which should be suitable for that.

Upvotes: 1

Related Questions