uwpcrashapplication-restart

UWP C# How To Auto Restart UWP App if it Crashes


I would like to find out if there is any way to auto restart UWP app if it crashes? I have my UWP app running on windows 10. Please advise.

Thanks.


Solution

  • Currently, UWP doesn't have a way to auto restart after it is crashed. When the app is crashed, the code will break. A possible way is that you could create a win32 app that detects the process of the UWP app, when the process exits, launch the UWP app again.

    Besides, I'd suggest handling the exception rather than restarting the app after it is crashed.