I finished the downloading part in ios.
But for opening the download files I used file opener plugin in android, which is working well in android. But for ios file opener plugin is not working.
Can any one help me out? Thanks in advance :).
I finished the downloading part in ios.
But for opening the download files I used file opener plugin in android, which is working well in android. But for ios file opener plugin is not working.
Can any one help me out? Thanks in advance :).
Hope you are using an old one, Try fileopener2
install plugin through cli
cordova plugin add cordova-plugin-file-opener2
and usage is
cordova.plugins.fileOpener2.open(
'/sdcard/Download/mypdf.pdf', // You can also use a Cordova-style file uri: cdvfile://localhost/persistent/Download/starwars.pdf
'application/pdf',
{
error : function(e) {
console.log('Error status: ' + e.status + ' - Error message: ' + e.message);
},
success : function () {
console.log('file opened successfully');
}
}
);
UPDATE
you can specify the MIME-type (second field) from the list of MIME types. These are the list of known MIME-types