How to start a background timer in Windows Phone 8?

I had a method that starts a timer and displays a warning every 10 minutes. But when I exit the application, it stops the timer and it does not display any warnings.

Someone will tell me how to start a timer in the background, which always runs, and gives regular updates, even if I am not using the application.

Is there any way to do this? I read that Windows Phone 8 will run tasks in the background, but I don’t find how to work with it,

I have seen scheduled agents, but I do not understand how to use this for this scenario.

+1
source share
2 answers

Scheduled agents run every 30 minutes anyway (at best). See Justin's answer to a very similar question for a list of your options with links to MSDN.

+2
source

I would look at the Reminders. If the sequence bothers you when it fires, I think this will be your best bet.

Here is the MSDN article on alerts / reminders:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202946(v=vs.105).aspx

0
source

All Articles