Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

setTimeout does not work in Appery.io Tester

I am trying to show a welcome panel the first time a certain page is shown by using the following code in the "Page show" script:

if(localStorage.getItem('showwelcome') == 'true') {
Appery('welcomePanel').panel("open");
setTimeout(function(){
Appery('welcomePanel').panel("close");
}, 3000);

Code: Select all

     localStorage.setItem('showwelcome','false'); 

}

This works fine if I make the .apk and download to android device. However, if I use the Appery.io Tester, the panel shows but does not go away after 3 seconds (I have to manually click to dismiss it).

Not a big deal, but may want to look into it. I wasted some time trying to debug why the panel won't go away, only to discover that the problem was not in my script, but in the Appery.io Tester.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

setTimeout does not work in Appery.io Tester

Kal,

I've tested. Works for me on both: installed on device and in Appery.io Tester.
Did you try to relogin and clear app cache?

Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

setTimeout does not work in Appery.io Tester

Right you are! Clearing the cache did the trick... Thanks!

Return to “Issues”