Problem with InAppBrowser on iOS

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()) {"data/ses_pdf.pdf", '_blank', 'location=no');
     } else {''), '_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">

PS : It’s working on android.

Edit : here is a link showing how iOS is acting : Youtube Issue Video

Hope you can help me :smile:

Joseph Gremaud

encodeURI works differently on android and on iOS.