For reference, I am using Unity 2020 LTS, MRTK for Unity, and HoloLens 2.
Using “UnityEngine.WSA.Launcher.LaunchUri” for opening a 2D Edge browser while inside a Unity 3D app has been successful for me, unless Edge then enters what I suspect is a “silent sleep mode”. The Edge window then becomes unresponsive to input and will not wake up. This is happening when I look away from the Edge window, towards other parts of my Unity application and/or raise the HL2 glasses. It takes less than a minute to fail.
To clarify, it is not the same “sleep mode” that 2D apps enter when in the HoloLens 2 home screen, where they darken and have a spinning circle icon when resuming. The “silent sleep mode” I’m referring to here has no indication on the window that it is inactive and does not resume upon interaction. Perhaps that window is crashing, but I do not understand why. It happens on any website I try. It does not happen when outside of a Unity 3D application. I am using a practically empty Unity scene with only a button to call LaunchUri, so I do not expect it to be because other “Unity-land” workloads are flooding the device.
Has anyone had an experience like this or have any insight?
Is there any way to “wake up” this window?
Is there any way to communicate with the Edge window via code, excluding launching a new window instead?
Is there a better way to use Edge within Unity than LaunchUri?
Is there any other browser that supports WebRTC that can work within a HL2 3D Unity app?