Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2011

    Widget autoupdate problem, setinterval ingored when set to 30 min.

    Is there some setInterval time limit? I made a widget with autoupdate option and when I've tested it with interval about 1-3 minutes it worked as it was supposed to, but when I've changed interval to 30 minutes (timerId = setInterval(updatetimer, 1800000) nothing happens. It looks like symbian is ignoring intervals longer than few minutes. Is there any other solution than using some counter and setting intervals to 1 min?

    edit: when I lock my phone timer freezes, so I need to use other technique...
    Last edited by wiktor.garczynski; 2011-11-20 at 17:16.

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008

    Re: Widget autoupdate problem, setinterval ingored when set to 30 min.

    Hi Wiktor and welcome to forum!

    Your observation about timers are correct. Timers are stopped when phone is locked, but that is not the only case. Please check the following Known Issue document for details:

    I would recommend using timestamps instead of setInterval. Could be something like this: When updating write the timestamp value with setpreferenceforkey. Then based on user events or platform events (such as user navigating to certain screen or switching to home screen) check the timestamp and fetch new content if needed.


Similar Threads

  1. SW Installer API and autoupdate
    By StasV in forum Symbian
    Replies: 2
    Last Post: 2010-08-21, 12:56
  2. Launching widget from widget: problem
    By LyhjeHylje in forum Symbian
    Replies: 3
    Last Post: 2009-10-30, 09:29
  3. Widget problem
    By Symbian2008 in forum Symbian
    Replies: 2
    Last Post: 2009-10-16, 14:15
  4. Email Autoupdate on 9300i
    By mbailoun in forum Smart Messaging
    Replies: 0
    Last Post: 2007-06-06, 18:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts