Prevent an app from going to sleep/crashing when handing off the Immersive device to another user
I have had an issue for a while where we would like to demo an app on the immersive device and would like to start the user already in the app, maybe after some menus have been navigated. However, often the app will just close when I remove the headset and the other user puts it on, or it might be stuck on the black screen which is basically the equivalent of crashing.
How do I prevent this, especially given how inconsistent it is and the same app might perform this handoff behavior just fine in testing but will fail on later attempts? I have looked into a number of solutions including enabling the run in background setting in unity and the extended execution session for uwp, none of which seem to fix the issue.
any help would be appreciated.