[BUG] Browser widget implemented without access to localStorage API

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


Reported as https://quality.livecode.com/show_bug.cgi?id=21281

On Tue, May 15, 2018 at 4:47 PM, Andre Garzia <andre at andregarzia.com> wrote:

> 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.
>



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



More information about the use-livecode mailing list