i used this code for my windows phone app.
Settings = new dmWFSettings();
Settings.TilePeriodicTask =
ScheduledActionService.Find("eWorkflow") as PeriodicTask;
if (Settings.TilePeriodicTask != null)
{
Settings.TilePeriodicTaskEnabled = Settings.TilePeriodicTask.IsEnabled;
try
{
ScheduledActionService.LaunchForTest(
Settings.TilePeriodicTask.Name, new TimeSpan(0, 0, 2));
}
catch (Exception)
{
}
}
but now for the tablet(RT) version what is the replacement for the ScheduledActionService , call ?
Thanks,
The thing you are looking for is called "Background Tasks" in Windows RT world.
First of all, have a look at MSDN: http://msdn.microsoft.com/en-us/library/windows/apps/hh977056.aspx You will find some examples and API reference there.
Some points that aren't stated clearly enough in MSDN:
BackgroundExecutionManager.RequestAccessAsync
if you don't really want to show anything on lock screen. You may schedule background tasks without asking user permission if that tasks wouldn't show notifications or do something UI-related.