4
votes

When I create a new Windows Phone SIlverlight 8.1 app, there is a background task in the manifest:

 <Extension Category="windows.backgroundTasks" EntryPoint="AgHost.BackgroundTask">
      <BackgroundTasks>
         <Task Type="systemEvent" />
     </BackgroundTasks>
</Extension>

What is it? Is it safe to remove? The only reference I could find is not very helpful http://msdn.microsoft.com/en-us/library/windowsphone/develop/dn642084.aspx

1

1 Answers

3
votes

AgHost.exe is the foreground process. This entry point is to allow you to host a background process, if necessary.

Unless you're writing a VoIP application, this should be perfectly safe to remove. However, if you're utilizing one or more background agents for GPS tracking, push notifications, or the likes, this might still be necessary.