For a clean test, instead of my project, I took the example of Background Audio for Windows Phone 8.1 Sample with msdn.

To simulate a long load (any data, and the interface itself), in the MainPage.xaml.cs file in the MainPage.xaml.cs method, I added Task.Delay(5000).Wait();

So, if you start the application (without the debugger), press the playlist and collapse, then the application is unloaded, if after 5-10 seconds to deploy it, there will be an inscription "resume" for 5 seconds. When running with a debugger and using lifecycle management tools, the application pauses and resumes instantly.

I accidentally noticed that if you remove the background task (player) from the initialization method deferral=taskInstance.GetDeferral(); well, its completion deferral.Complete();

then the application is not unloaded, and instantly unfolds, the only significant and logical minus is to pause the playback when the application is minimized.

How can I solve this problem with the "renewal"?

    0