I have an api that return blob file response in my Ionic application and using file-saver.js I am able to download it as pdf when running it on browser, but when I deploy it on android my app wont download the pdf . Is there alternative way to do it? I’m using Ionic 5 with Capacitor .
const response = await this.interactionService.generatePdf(payload).toPromise();
FileSaver.saveAs(response, `InteractionMonitoring.pdf`);