[BUG] Browser widget implemented without access to localStorage API

panagiotis merakos merakosp at gmail.com
Tue May 15 18:04:19 EDT 2018


I realised my previous reply was sent only to Andre, so I am posting it
again for anyone else watching the thread and/or suffering from the same
problem:

---------------------------------
Hi Andre,

No I am not aware of any issue. I saw your report about the
javascripthandlers not working on Android. I did a quick test using the
stack attached to bug https://quality.livecode.com/show_bug.cgi?id=19666,
and it works as expected on my Android phone.

If you could attach a sample stack to your report, we will be able to
isolate the problem faster.

Best,
Panos
--

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

> Panos,
>
> Thanks a lot for reaching out so fast. I will test this shortly and get
> back to you and the bug report. In the meanwhile, are you aware of any
> "javascriptHandlers" bug in Android?
>
> om om
> andre
>
> On Tue, May 15, 2018 at 6:35 PM, panagiotis merakos via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
>> Hi Andre,
>>
>> Have you tested with LC 8.1.10 rc1 (or rc2)? We added support for local
>> storage on Android browser in this PR:
>>
>> https://github.com/livecode/livecode/pull/6362
>>
>> Best,
>> Panos
>> --
>>
>> On Tue, May 15, 2018 at 8:56 PM, Andre Garzia via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>
>> > 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.
>> > _______________________________________________
>> > use-livecode mailing list
>> > use-livecode at lists.runrev.com
>> > Please visit this url to subscribe, unsubscribe and manage your
>> > subscription preferences:
>> > http://lists.runrev.com/mailman/listinfo/use-livecode
>> >
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
>
> --
> http://www.andregarzia.com -- All We Do Is Code.
> http://fon.nu -- minimalist url shortening service.
>



More information about the use-livecode mailing list