Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Open downloaded pdf file

$
0
0

@Rads wrote:

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)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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