In my Package.appxmanifest file, I added a declaration for Background Tasks," because I will eventually need one - it hasn't been written yet. I selected "System event" as the Supported task type, but nothing in the App settings (Executable, Entry point, Start page) yet.
When I try to run the app after adding that declaration, I get: "App manifest is missing required element '/Package/Applications/Application/Extensions/Extension/BackgroundTasks/Task'"
So is there some value I can enter into one of the "App settings" edit boxes, or do I have to first create the Background Task before I declare that I'm going to use one, or...???
UPDATE
According to http://www.silverlightshow.net/items/Windows-8-metro-make-your-app-alive-with-background-tasks.aspx, the ControlChannel option can be used for sockets:
"ControlChannel: these tasks, only available in XAML/C# applications, can be notified when a network resource receive some data. These are related mostly with StreamSockets. Also this task requires the lock screen constraint."
The article also mentions: "...you can be notified about a number of system events. These event are triggered when something happen, like an incoming SMS, ..." but if I understand correctly, only Mobile Service Providers can implement the SMSReceived event.
But one of the things I'm still not clear on is: Can I create a class within my project that will be the background task, or do I need to add a project to my solution that will be/include the Background task? If the latter, should this project be a "Class Library (Windows Store Apps)" or "Windows Runtime Component" project type?