Closed MATAUDI closed 11 months ago
You probably want to look into the events for when the user is navigating to a link and inspect that to see if it contains base64 data.
Since this is not a bug in Xamarin.Forms but more a how to question I'm closing this here. You might have better luck at Microsoft Q&A or Stack Overflow.
The code that I attached that creates an "A" for a link dynamically when I press the download button on my website, does not navigate with any webview event, can you tell me if I have to do this in a render of each platform or how I could do it?, because I also download files by BLOB and it does not work, the web does not navigate in the webview.
If you have examples to give me based on what I propose for the android and ios platform, I would appreciate it, because I have searched and tried everything I found on the web and nothing worked.
My website is developed in Blazor.
When the URL is base64 as below, I can't catch the download of the "file":
<a href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." download>Download</a>
How can I capture the link in base64 and download the file and then display it once it is downloaded to the internal storage of the device. Maybe make a cross-platform interface for downloading and opening the file once it's downloaded.
How can it be done on Android and iOS for Xamarin Forms?
The function I use to create the link in base64 is:
I am missing something to be able to capture it from the Xamarin Forms WebView on both platforms? Thank you so much.