How can I register custom scheme in UWP app? #4436
Unanswered
ricklee7679
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I am using WebView2 ver. 1.0.2365.46 in a UWP app and unable to register a custom scheme (like
mylocal://
) in the following codes. I would like to register that custom scheme for firing [WebResourceRequested] event ( https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.webresourcerequested?view=webview2-dotnet-1.0.2365.46) event. Right now, the event only happens withhttps://
,http://
schemes.The above commented out
EnsureCoreWebView2Async()
of UWP cannot take params, and that makes the registration inapplicable.Questions:
EnsureCoreWebView2Async()
.CoreWebView2EnvironmentOptions
, though it has a workaround. Do you see a workaround for setting custom scheme? assuming 1) is true.Thanks
Beta Was this translation helpful? Give feedback.
All reactions