Open downloaded pdf file

Unable to open downloaded pdf file in iOS9

code snippet:

$cordovaFileTransfer.download($scope.url, $scope.targetPath, options, trustHosts)
.then(function (result) {
// Success!<img
if ($scope.extension.toUpperCase() === “PDF”) {
$cordovaFileOpener2.open($scope.targetPath, ‘application/pdf’)
.then(function () {
// file opened successfully
}, function (err) {
$ionicPopup.alert({
template: ‘Unable to open file’
});
});
}

But no pdf to read found in either of the app.
(Was working fine until the phone was updated to iOS 9)

Resolved. Updated the “cordova-plugin-file-opener2” to version 2.0.0 :smile:

@Rads is it still working? after updated to iOS 9, opening a downloaded pdf file works fine just at first time. At the second time an exception is rased at @autoreleasepool. I need to close my App to open a file again

Yes its still working at my end.