Download and copy function is not working on mobile devices

38 views Asked by At

Download and copy function is not working on mobile devices but works fine desktop. Both in android and IOS.

Using filesaver.js for download and navigator clipboard.writeText for copy function. Any solution for mobile device?

<a class="download downloadFile" href="javascript:void(0)" download="" onClick="downloadFile">`
function downloadFile() {
  var url = $("#siderModal .image").attr("src");
  var imgPath = document.location.origin;
  saveAs(imgPath + "/" + url);
}
0

There are 0 answers