K03nr44d K03nr44d - 12 days ago 8
C# Question

UWP Background Task System Shutdown

I'm learning Win 10 UWP and my goal is to write an SQLite database entry every 15 minutes using a background task.

My question is, what happens to the background task when the user shuts down the system and restarts it later on?

As I can understand, the user has to start the application again manually to register the background task again. Or is the background task somehow registered somewhere and restarts when the system is back up again without having to manually restart the background task again?

Answer

Once you've registered your background task, it stays around even after the computer reboots. The user doesn't have to launch your application again.