I am stuck trying to download an XML file by pressing a button which first generates XML and then downloads file in browser such as chrome etc. I have to render this web page in an in-app browser. I am using web view/xamarin forms which is almost serving the purpose i.e. I can interact and make adjustments to other buttons on the web page but when I click the download button it does nothing. I have searched a lot and the closest question I have come across is here;
https://forums.xamarin.com/discussion/96237/file-download-via-xamarin-forms-webview
still this is not what I want I have posted this question on the link above too but no response. Also the question above downloads using a downloadable link and does this using browser like chrome etc. On the other hand I don't want to leave in-app browser to download file. I have read its documentation here;
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/webview?tabs=vswin#Events
but it says nothing about downloading a file nor it says anything about any alternatives to it. I don't have much code to show, this is what I am doing at XAML side
<StackLayout>
<WebView x:Name="webView" HeightRequest="1000" WidthRequest="1000"
Source="http://example.com/b/" VerticalOptions="Center"
AbsoluteLayout.LayoutBounds="0.95, 0.05, 100, 50"
AbsoluteLayout.LayoutFlags="All" />
</StackLayout>
Any help is really appreciated, I have seen other questions but most of them talk about downloading from a URL which I don't have or old Nuget packages.