I have a simple windows universal application (JavaScript) and it set to be used in kiosk mode for Win10 (build 10586). I have an issue, when the tablet is switched to sleep mode and wake up, app doesn't opened in the last state, it refreshed (I think the view above lock screen recreated). Is there any way to restore that state and/or prevent that view to be recreated. To reproduce that issue just create Blank App (Universal Windows) JavaScript, in main.js add following code
setTimeout(function () {
document.getElementById('1').remove();
},2000);
and in index.html
<div id="1">Content goes here!</div>
In manifest file add so the app can be set in kiosk mode
<Extensions>
<uap:Extension Category="windows.lockScreenCall" />
<uap:Extension Category="windows.aboveLockScreen"/>
</Extensions>
Build app with MSBuild(14) and set it in kiosk mode. Wait while tablet goes to sleep mode or press power button, then switch it back, notice that div is appeared in screen again(app recreated).