Safari htlm <a href tag download not Working

Hello,
I try to use the html <href > for download a pdf file generated on fly on base64 encryption.

this is the example:

<a href="data:application/pdf;base64,JVBERi....... =" download="file.pdf"> download </a>

this not working on mobile safari. Work on the other sistem but not on safari.

There are one way to do it?

Thanks
Same problem, react native
const linkSource = data:application/pdf;base64,${body};
const downloadLink = document.createElement("a");
const fileName = name.pdf;
downloadLink.href = linkSource;
downloadLink.download = fileName;
downloadLink.target = "_blank";
downloadLink.click();

hope somebody could help,
Safari htlm &lt;a href tag download not Working
 
 
Q