quickbird-uk / QuickbirdUWPDashboard

Quickbird UWP App and Server
http://www.quickbird.co.uk/
GNU General Public License v3.0
27 stars 7 forks source link

App self-restart on Crash #66

Open VladimirAkopyan opened 6 years ago

VladimirAkopyan commented 6 years ago

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_

VladimirAkopyan commented 6 years ago

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.

VladimirAkopyan commented 6 years ago

this is blocking #60

VladimirAkopyan commented 6 years ago
 await CoreApplication.RequestRestartAsync(payload);

Will be present after anniversary update: https://docs.microsoft.com/en-us/uwp/api/Windows.ApplicationModel.Core.CoreApplication