In our LWR portal , in desktop and ios - attachment is downloading but mobile publisher app (android) attachment not downloading "Attachment failed - Servlet" . Thanks in Advance
const link = document.createElement('a');
link.href = fullPdfLink;
link.target = '_self'; // also tried _blank still getting the same.
link.download = 'download.pdf';
link.click();
link.remove();
try removing link.download...I don't know if it will make a difference but I don't think it's necessary.