Provide API to relaunch the app if it was closed as part of a system update reboot
When a machine automatically reboots as part of installing updates any running apps are closed.
Upon a person next logging into the device it would be nice to be able to have the app restart automatically too.
A small number of non-UWP desktop apps do this but rely on service components to trigger restarting the app which is undesirable in a modern/UWP environment.
I'd like to see a way for any UWP app to opt-in to being automatically restarted when the user logs in after a shutdown caused by an automatic reboot. Having the app receive activation parameters that indicate the cause of the restart would be great for this too.
It would allow the app/developer to track why the app was restarted but, more importantly, it would allow for the app to provide a better experience that allows the user to continue where they last left off--with the app running and at a specific position in the app.
I'm aware that there's some potential overlap here with proposed timeline and "sets" functionality which allows people to continue where they left off, but this request is specifically focused on what happens when the PC restarts without interaction when the user is away from the device.
Matt Lacey commented
See also, comments on this thread on Twitter https://twitter.com/mrlacey/status/1005081772978208769