Reputation: 2328
I had a method which runs the timer and displays alert for every 10 minutes. But when I came out of the application it stops the timer and the it does not display any alert.
Would somebody tell me how to run the timer on background which always runs and gives the regular updates even if I'm not using the app.
Is there a way to do that? I read that the windows phone 8 will run tasks on background but I don't find how to work with it,
I saw the Scheduled Agents but I don't understand how to use that for this scenario.
Upvotes: 1
Views: 5654
Reputation: 274
I would look into "Reminders". If you are worried about the consistency of when it will fire, I think it would be your best bet.
Here is the MSDN article on alarms/reminders:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202946(v=vs.105).aspx
Upvotes: 0
Reputation: 9604
Scheduled agents only run every 30 minutes anyway (in the best case scenario). See Justin's answer on a very similar question for a list of your options with links to MSDN.
Upvotes: 2