2
votes

I just downloaded the universal app background task sample application for windows phone 8.1 and windows 8.1.

http://code.msdn.microsoft.com/windowsapps/Background-Task-Sample-9209ade9

So after going through the code, I understand that the background task is being implemented using the windows runtime component. I am trying to use the timertrigger.

Is it a possibility that the background task be implemented using the Silverlight 8.1 windows phone project instead of a windows runtime project?

2

2 Answers

8
votes

The answer above is wrong. Wonder how it has 5 votes. Anyways, background task cannot run in a silverlight applciation but it can only register a background task. It has to be a runtime project that runs a background task.

A silverlight application can just register a background task which is a separate runtime project. Its a different process all together.

0
votes

Yes, it is possible. The reason why they chose a Windows Runtime project in this example was to show the new Universal Apps. You can use the BackGroundTasks in a Silverlight based project and in a Windows Runtime base project.

But if you ever plan to expand you app to Windows 8 you should think about making it a Universal App.