[BUG] Browser widget implemented without access to localStorage API

Andre Garzia andre at andregarzia.com
Tue May 15 15:47:22 EDT 2018


LocalStorage is a web api which is standard everywhere, you can read more
about it at:

https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage

It is part of the W3C Web Storage Spec and implemented in every single
browser and webview everywhere but on Android default WebView it is
disabled unless you enable it in the code that creates the webview as can
be seen in:

https://stackoverflow.com/questions/33079762/android-webview-uncaught-typeerror-cannot-read-property-getitem-of-null

So, any code using the browser widget on Android can't save or retrieve
data from localStorage. And it is even worse since localStorage is set to
null in those cases, the whole app will stop and freeze.

-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.



More information about the Use-livecode mailing list