I have a script that works normally in the mobile browser and in the browser of the computer, however when it generates an apk it saves a file with another extension instead of the proposal.
Below is my script
$("#download").click(function() {
html2canvas($("#layout"), {
onrendered: function(canvas) {
var a = document.createElement('a');
a.href = canvas.toDataURL("image/jpeg", 1.0);
a.download = 'sou-enfermagem.jpeg';
a.click();
}
});
});
I just need this image to be saved in the android download folder. What do I need to change in this script to work on android?