Description of the issue:
A common design pattern in flutter apps to download a file (save as) is not functional in the mobile browser at least in iOS.
It works in windows browser
It works in Safari.
It’s a common pattern.
How can this issue be reproduced?
Using the following pattern:
void downloadTest () {
final content = base64Encode (
“this is test data. You have pushed the button: $incrementCounter times”.codeUnits);
final blob = Blob([content], “text”);
final url =Url.createObjectUrIFromBlob(blob);
final anchor = AnchorElement (href: url)…target = "blank”…download =“testfile.txt”;
anchor.click();}
- Open a browser to zapp.run or any flutter online ide, or build the flutter app and include a button to this function
2.run app in mobile browser
3.note in brave browser nothing downloads
4.note in safari download starts
Expected result:
Download is queued
Brave Version( check About Brave
):
1.65 (122)
Mobile Device details
iPhone 14 pro ios17
-other iOS devices and versions tested
Additional Information:
One thing i noted is in previous versions the red exclamation mark appeared when pressing the download button. The link progress indicator also runs but nothing returns and no console errors.