I’d like to open a PDF (or just download it) from an Ionic App (Cordova 1.5.0 - Ionic CLI 3.6.0).
I’ve found many posts on that argument but I can’t find a nice solution.
this.iab.create(pdfUrl, "_self", "location=yes,hidden=no"); this.iab.create(pdfUrl, "_blank", "location=yes,hidden=no"); window.open(pdfUrl, '_self', 'location=yes'); window.open(pdfUrl, '_blank', 'location=yes'); window.open(wsUrl, '_system', 'location=yes');
The first 4 commands do not work, don’t open the PDF.
The last command downloads the file but opens the system browser on a page (I suppose the last visited) that has nothing to do with the wsUrl and the effect is not professional.
So, the question is always the same, is it possible to open a PDF with Ionic?
Thank you very much.