I want to use a WebView to show content that is provided by a 3rd party via a call to their JavaScript. I get the message "You must allow popups for this to work" ... so how do I do that?
I have this in XAML:
<WebView x:Name="WebView"
HeightRequest="1000"
Source="{Binding WebViewContent}"
WidthRequest="1000" />
And this in ViewModel:
var localHtml = new HtmlWebViewSource();
localHtml.Html = @"<html>
<body>
<p>This is a test</p>
< script src='https://url-to3rdparty-js.js\' ></ script >
< script >
ThirdParty.showUI('kd28kzjl2l', 'https://thirdparty/tpp-ui/');
</ script >
</body>
</html>";
WebViewContent = localHtml;
With WebViewContent defined as:
public WebViewSource WebViewContent
{
get => _webViewContent;
set => SetProperty(ref _webViewContent, value);
}