J'ai téléchargé un fichier pdf à partir du serveur en utilisant Transfer Plugin et j'essaie d'ouvrir le fichier en utilisant le plugin InAppBrower je ne reçois rien. Je veux dire que rien ne se passe.Comment ouvrir un pdf local en utilisant InAppBrowser
fileTransfer.download(url, this.file.dataDirectory + file.filename,false,{
headers: {
'authorization': 'bearer xxxx'
}
}).then((entry) => {
console.log('download complete: ' + entry.toURL());
console.log(entry.nativeURL);
const browser = this.iab.create(entry.nativeURL, '_system', 'location=yes'); //here the inappbrowser plugin code.
}, (error) => {
// handle error
console.log(error);
console.log('ERROR');
});
mon console.log (entry.nativeURL); imprime ce chemin
file:///data/user/0/com.schneider.and/files/Attendance_Policy_Ver_1.0.pdf
vérifier cette fois https://stackoverflow.com/questions/26304729/not-able-to-launch-a- pdf-file-in-inappbrowser-in-android –
après avoir essayé la pile ci-dessus réponse je reçois la page blanche affichée dans mon inappbrowser aucune idée @SaEChowdary –
Où le testez-vous? – Sampath