Page 1 of 1

setTimeout does not work in Appery.io Tester

Posted: Sat Jul 12, 2014 12:08 am
by Kal

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.


setTimeout does not work in Appery.io Tester

Posted: Sat Jul 12, 2014 1:44 am
by Alena Prykhodko

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?


setTimeout does not work in Appery.io Tester

Posted: Sat Jul 12, 2014 5:31 pm
by Kal

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