Page 1 of 2

InAppBrowser not zoomable PDF in iOS 12?

Posted: Mon Sep 16, 2019 6:57 pm
by Lars Holtet

Hi,

I have local pdf files in my app, to read them its neccesary to zoom. I use this code, but it does not work on iOS, only android. Any idea on how i might get this to work?

window.open("../files/file.pdf", '_blank', 'location=no', 'EnableViewPortScale=yes');


InAppBrowser not zoomable PDF in iOS 12?

Posted: Mon Sep 16, 2019 6:58 pm
by Lars Holtet

jquerymobile..


InAppBrowser not zoomable PDF in iOS 12?

Posted: Mon Sep 16, 2019 7:50 pm
by Serhii Kulibaba

Hello Lars,

Unfortunately, this is outside the scope of our support. Please search online for an appropriate solution.

I see you pass incorrect parameters of the in-app browser it should beprewindow.open("../files/file.pdf", '_blank', 'location=no, EnableViewPortScale=yes');/pre


InAppBrowser not zoomable PDF in iOS 12?

Posted: Tue Sep 17, 2019 6:53 pm
by Lars Holtet

That does not work with iOS anymore :(

You guys used to sort and support all kinds of things earlier ;)


InAppBrowser not zoomable PDF in iOS 12?

Posted: Tue Sep 17, 2019 7:11 pm
by Serhii Kulibaba

What exactly is not working?
Please check if there are any errors in the browser console. You can learn here: https://docs.appery.io/docs/using-bro... how to open the console.

Please see the official example of using multiple parameters in the inAppBrowser: https://cordova.apache.org/docs/en/la...


InAppBrowser not zoomable PDF in iOS 12?

Posted: Wed Sep 18, 2019 6:09 pm
by Lars Holtet

The pinch zoom does just not appear anymore.. Prolly has something to do with iOS?


InAppBrowser not zoomable PDF in iOS 12?

Posted: Mon Sep 23, 2019 8:09 am
by Serhii Kulibaba

Does it work on other iOS versions? Apple might change something.

Please wrap your local file with the iframe inside of your app page. Does it have the same behavior?


InAppBrowser not zoomable PDF in iOS 12?

Posted: Mon Sep 23, 2019 8:13 am
by Illya Stepanov

Hi Lars - would it be possible to share the App sample that you have so that we can test this?


InAppBrowser not zoomable PDF in iOS 12?

Posted: Mon Sep 23, 2019 6:24 pm
by Lars Holtet

InAppBrowser not zoomable PDF in iOS 12?

Posted: Mon Sep 23, 2019 6:25 pm
by Lars Holtet

I have shared it to you. Please go to the page "huskelister" and test the top button, this includes the "EnableViewPortScale=yes" :)

and, thank you for your support :)