Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Open downloaded pdf file

$
0
0

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'
});
});
}

width="281" height="500">

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


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>