QuickbirdUWPDashboard
QuickbirdUWPDashboard copied to clipboard
App self-restart on Crash
Simple - make the app restart itself on crash. That would allow the app to be viable outside Assigned Access mode. It also appears that Assigned Access no longer guarantees that the app will stay running - in recent testing it no longer gets restarted.
This will stop Microsoft laughing on it;s way to the bank.
https://blogs.windows.com/buildingapps/2017/07/28/restart-app-programmatically/#oqBqvmQP6WVLW6xY.97
https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.core.coreapplication#Windows_ApplicationModel_Core_CoreApplication_RequestRestartAsync_System_String_
Realised that this is important - you can't have the app crash on you, and leave no data being captured. and that it's easy to accomplish.
- How to catch all exceptions: https://stackoverflow.com/questions/36607222/how-to-try-catch-all-exceptions
- How to restart the app: https://blogs.windows.com/buildingapps/2017/07/28/restart-app-programmatically/
this is blocking #60
await CoreApplication.RequestRestartAsync(payload);
Will be present after anniversary update: https://docs.microsoft.com/en-us/uwp/api/Windows.ApplicationModel.Core.CoreApplication