I have two issues in my UWP app with a WebView Control accessing WhatsApp Web. For these two issues I have searched the web for answers, without any luck.
Issue no1. I have set the WebNotifications to Allow with the following:
private void WebView_PermissionRequested(WebView sender, WebViewPermissionRequestedEventArgs args)
{
if (args.PermissionRequest.PermissionType == WebViewPermissionType.WebNotifications)
{
args.PermissionRequest.Allow();
}
}
My problem is, that each time I restart my app it asks for the permission again. How do I store the permission to never ask again?
Issue no2. In WhatsApp Web there is an option on any shared file (photo, pdf, etc) to Download it. Problem is when I click on Download, nothing happens. Are there any settings for WebView to allow downloads, or open Download/Save As Dialog?