Unable to open downloaded pdf file in iOS9
code snippet:
$cordovaFileTransfer.download($scope.url, $scope.targetPath, options, trustHosts)
.then(function (result) {
// Success! 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)