Hi guys,
I have problems with showing a PDF file with inAppBrowser of cordova. It’s half working, I mean it’s working but only if I go out of app and come back in it.
Here is my function (I use google.doc viewer) :
$scope.openPDF = function openPDF() {
if (ionic.Platform.isIOS()) {
window.open("data/ses_pdf.pdf", '_blank', 'location=no');
} else {
window.open(encodeURI('https://docs.google.com/gview?embedded=true&url=https://www.dropbox.com/s/jp5cwme8dle1ura/ses_pdf.pdf?dl=1'), '_system', 'location=no,EnableViewPortScale=yes');
}
};
And here is my call to function :
<div class="col-xs-4 menu_pdf">
<a ng-click="openPDF();" style="display: inline-block;">
<div style="text-align:left;">
<img src="img/logo_pdf.png" alt="logo" width="75px" height="75px">
</div>
</a>
</div>
PS : It’s working on android.
Edit : here is a link showing how iOS is acting : Youtube Issue Video
Hope you can help me
Joseph Gremaud