i get pdf file from web service and i want to download it and open it in my android device.
using this code
fileTransfer.download(url,this.file.externalDataDirectory+ filename).then((entry) => {
this.localNotifications.schedule({
text: ‘Téléchargement de fichier’+filename+’ est terminé !!',
led: ‘FF0000’,
sound: null
});
download the pdf file but connot open it because it has been saved as “invalid format” !!!
i have been read a lot about encoding to base64!
is there any idea or example code to save pdf file in the right format??