Discussion Board

Results 1 to 2 of 2
  1. #1
    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 Moderator isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    831
    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:
    http://www.developer.nokia.com/Commu..._BrowserNG/7.1

    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.

    Br,
    Ilkka

Similar Threads

  1. SW Installer API and autoupdate
    By StasV in forum Symbian C++
    Replies: 2
    Last Post: 2010-08-21, 12:56
  2. Launching widget from widget: problem
    By LyhjeHylje in forum Symbian Web Runtime
    Replies: 3
    Last Post: 2009-10-30, 09:29
  3. Widget problem
    By Symbian2008 in forum Symbian Web Runtime
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved