Open ydev0927 opened 1 year ago
@ydev0927 Thanks for the bug report, and sorry you are running into this. I saw you were also the one who opened #3624. Similar to that issue, does this repro using the editor only, or also when deploying to the physical device?
@champnic Sorry for posting too many. This issue only occurs on physical device.
No worries, and thanks for the info. I've added this bug to our backlog.
Description
Hololens2 virtual keyboard not opening after javascript "beforeunload" event.
Version SDK: com.microsoft.mixedreality.webview.unity-0.17.1-pre.3.tgz Runtime: Unity2020.3.33 Framework: Unity2020.3.33, MRTK2.8.3 OS: (Hololens2) 22621.1120.arm64fre.ni_release_svc_sydney_rel_prod.230707-1012
Regression Was this working before but has regressed? > No. If yes, what version did this last work on?
Repro Steps
Clone this repository. https://github.com/MicrosoftEdge/WebView2Samples/
Resolve compilation errors
Open this sample in UnityEditor. https://github.com/MicrosoftEdge/WebView2Samples/tree/main/GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp
Set "Current URL" of "WebView" https://ydev0927.github.io/ForWebView2Issues/beforeunload_page.html
Attach this script to "Canvas"
public class WebViewInputProvider : MonoBehaviour, IMixedRealityPointerHandler { WebView webViewComponent => GetComponentInChildren();
}