You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm trying to implement webview2 using the latest library for hololens and unity, but I'm having an issue where pages invoke a new window and this is catched by default Browser on the Hololens2 and openning an Edge window.
I saw other examples that explain how to prevent this but this examples differs from what I have on the unity library, I can catch the string of the url, but it doesn't prevent to open a new window.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm trying to implement webview2 using the latest library for hololens and unity, but I'm having an issue where pages invoke a new window and this is catched by default Browser on the Hololens2 and openning an Edge window.
I saw other examples that explain how to prevent this but this examples differs from what I have on the unity library, I can catch the string of the url, but it doesn't prevent to open a new window.
Like this:
But in other examples from UWP .Net the method is like this, and they suggest to set the Handled to true, but this is not available on Unity library
Something like this:
PD. Im using this page from micrsoft as reference
https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/hololens2#step-7---extending-webview2-functionality
Any have any clue on how to prevent from opening new windows on edge on unity with hololens 2?
Beta Was this translation helpful? Give feedback.
All reactions