Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7445507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:50:57+00:00 2026-05-29T11:50:57+00:00

I am looking into ways of updating a live tile frequently – for example

  • 0

I am looking into ways of updating a live tile frequently – for example every 5 minutes.

I have used Push notifcations before, but I want to avoid them this time.

ShellTileShedule only updates once an hour.

I am thinking about using a background agent that runs every five minutes and updates the tile with the information it has obtained from the server.

Apart from the 14day expiry, can you see any pitfalls with this?

How do people normally get round the 14day expiry?

Will querying a service and downloading a few lines of text every 5 mins really kill the battery?

EDIT: It seems background agents for a task such as this only update every 30mins, is there a way round this, or a better solution?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:50:58+00:00Added an answer on May 29, 2026 at 11:50 am

    You are somewhat constrained as to when your background tasks run on the phone. The OS will also move the scheduled time of the tasks if it can execute multiple at the same time – to avoid having to wake up the phone twice. If you’re wanting to update the tile every 5 minutes then push notifications are your only option. But you should probably be considering if the user will actually look at information that regularly.

    I go for a halfway approach – I use a PeriodicTask to update my shell tiles as the OS allows but then when the application launches I manually refresh the tiles with the latest information. This allows the user to “force” the tile data and additionally provides more realistic data after the user has exited the application.

    To get around the 14 day expiry re-register your background task on every launch of your application. That’ll keep pushing the 14 days out. It’s intended to prevent unused applications from using precious resources – if your user is launching your application they probably still want the background agent to run. And if not, they can disable it through Settings > Applications > Background Tasks (or by uninstalling, obviously). To register your task execute something like the following in initialisation code;

      PeriodicTask task = ScheduledActionService.Find("MyTaskName") as PeriodicTask;
      if ((task != null) && (task.IsEnabled == true)) {
        ScheduledActionService.Remove("MyTaskName");
      }
    
      task = new PeriodicTask("MyTaskName") {
        Description = "My Periodic Task",
      };
      ScheduledActionService.Add(task);
    
    #if DEBUG
      if (System.Diagnostics.Debugger.IsAttached == true) {
        ScheduledActionService.LaunchForTest("MyTaskName", TimeSpan.FromSeconds(10));
      }
    #endif
    

    The #if DEBUG allows you to schedule the task straight after execution for testing scenarios.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking into different ways to handle updating an ASP.NET application across many
I have a question. Recently I was looking into ways to implement hardware rendering
I have been looking into the ways of distributing an iOS application internally in
I've been looking into ways to compress PHP libraries, and I've found several libraries
I am looking into different ways to implement multi tenant application - one of
I am looking into alternate ways to do a Matrix Multiplication. Instead of storing
I've been looking into JOIN, subqueries and other ways of doing this, but I
I am looking into using either of mentioned ways of dealing with long running
I have been tasked with looking into our deployments, and seeing where they can
Evening all. I have the following code that I need looking into - basically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.