I'm working on a Metro app that will upload and download some files. MS provides a couple examples: http://code.msdn.microsoft.com/windowsapps/Background-Transfer-Upload-457ae763 http://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61
The first one is an uploader app, and the 2nd is a downloader app. As Win8 can suspend and kill an app when it goes out of focus, the downloader app provides for retrieving the active downloads so I can start receiving updates about the status. The Uploader app does not. I have tried to add this functionality, but getCurrentUploadsAsync() is returning 18 transfers that I have already completed. I have tried everything I can think of to remove these transfers, but it does not change the results of getCurrentUploadsAsync().
Does anyone know how to clear out "dead" BackgroundTransfers in WinRT?
You have to call the cancel method like explained there : http://www.jonathanantoine.com/2013/02/05/winrt-how-to-cancel-a-background-download-operation/