Hi,
I have a widget that should update every day.
timer = setInterval("tick()", 1000 * 60 * 60);
This should be ok, if I read the documentation. Unfortunately, I read also, that the widget must be visible, else the timer stops working.
So, the widget has to be visible for 1 hour after the timer emit the signal.
But after 30 seconds, the screensaver stops the time and the homescreen is updated only after some days (right?).
There are a lot of daily widgets on the store, that doesn't update the content.
A workaround is to write:
timer = setInterval("tick()", 5000);
and in tick() function I test if the current day is like the day where the widget was updated the last time.
Is there a better solution?
Thanks! Tiger54

Reply With Quote


