I have downloaded an pdf file from the server using Transfer Plugin and i am trying to open the file using InAppBrower plugin i am not getting anything. i mean nothing is happening.
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');
});
my console.log(entry.nativeURL); prints this path
file:///data/user/0/com.schneider.and/files/Attendance_Policy_Ver_1.0.pdf