What is the minimum version of Android that supports local HTML5 storage?

Also, how can I check if the browser on the device supports local storage?

+6
source share
1 answer

I would say that HTML5 repository is supported with API level 7 (2.1), because the method that includes it in the WebSettings Object says it is here , but I think I use it in a native browser with Android 2.0.

 // Javascript Test if (typeof window.localStorage == 'object') { // localStorage is supported } else { // localStorage is not supported } 

http://jsfiddle.net/kcckq/


Here is a blog post that says it is Android 2.1 +


Here's another article that talks about Android 2.0+ and gives an example of how to detect if localStorage is supported.

+11
source

Source: https://habr.com/ru/post/916747/


All Articles