Sunday, March 11, 2012 9:41 AM
I'm using the BackgroundDownloader in my app and noticed, that when the app is closed (by swiping down from the top), the BackgroundDownloader Process is killed instantly too. This results in the download to remain in the collection and can be called when restarting the app, however when I try to load the download (to restart or resume it) I get a WinRT error : Operation aborted.
I noticed, that in the sample the same thing happens, however when the Exit button is used (calling the window.close() method), the BackgroundDownloader Process remains open for a little while and the download can resume on app restart.
Is this behavior by design or is it something that will be fixed in the future?
Monday, March 12, 2012 2:43 PMModerator
I have not had time to test this but I would imagine if you pauseAll (ala the sample) during the suspending event:
this would prevent the issue. The sample already shows resuming on start.
Let me know if this works for you!
Jeff Sanders (MSFT)
Monday, March 12, 2012 7:36 PMThat worked brilliantly thanks. I actually put the pause all in the app.oncheckpoint function and now they load up cleanly when the app is restarted. Thanks!