Open local .pdf on iOS


I’m trying to open an already present .pdf file on iOS [I can see the files in iBooks]. I use Ionic and the file-opener2 Cordova plugin - I use the latest versions of Cordova and the plugin.

This is the code that works perfectly on Android:

 $scope.openPDF = function() {
    '/storage/emulated/0/Download/pdf/name.pdf', // Any system location, you CAN'T use your appliaction assets     folder           
    ).then(function() {
    }, function(err) {
        console.log('An error occurred: ' + JSON.stringify(err));

Yes, I want to be a local file without having to download it, this is a show off app that won’t have internet connection where will be running for just one day. So the files have to be local.

I have no idea how to open the file paths like in Android. Running on iOS 9.3.3., iPad Pro. Also, the device is not jailbroken.

edit: This is my new code, it stil fails in iOS hoever, works gret on Android.

function openPDF(uri) {         
var filePath = cordova.file.applicationDirectory + 'www/pdf/fichas/name.pdf';
window.resolveLocalFileSystemURL(filePath, function(entry) {
    var fileTransfer = new FileTransfer();
    var targetFile = cordova.file.externalDataDirectory +;
        function(entry) {
            console.log("download complete: " + entry.toURL());
            console.log("targetFile: " + targetFile);                   
                    error : function(error){ alert('open error ' + JSON.stringify(error)) }, 
                    success : function(){ } 

        function(error) {
            console.log("download error source " + error.source);
            console.log("download error target " +;
            console.log("upload error code" + error.code);
    }, function(error){ alert('error resolveLocalFileSystemURI ' + JSON.stringify(error)) });