Page 1 of 1

open pdf files internal in the app

Posted: Sat Sep 28, 2019 7:34 am
by Lars Holtet

Hi,

Im about to update one of my apps, but it looks like something has changed with the cordova versions you have implemented.

My issue is that i can't close the .pdf file after it is opened. Back in the day it used to be a toolbar at the bottom where you could click "Done" to get back to the app, this is now gone.

How can i get this back with the new version of cordova?

The code i have always used (Except the conent was online earlier):

window.open("../filer/tff562.pdf", '_blank', 'location=no');


open pdf files internal in the app

Posted: Sat Sep 28, 2019 7:46 am
by Lars Holtet

iOS13.


open pdf files internal in the app

Posted: Sat Sep 28, 2019 8:24 am
by Lars Holtet

The issue is that the "Done" button /close button is not showing after the .pdf is opened.


open pdf files internal in the app

Posted: Sat Sep 28, 2019 8:41 am
by Lars Holtet

What i really need is just a solution that can open and close pdf files after pressing a button or a listview..


open pdf files internal in the app

Posted: Sat Sep 28, 2019 9:13 am
by Lars Holtet

nevermind, got it to work :) please delete.


open pdf files internal in the app

Posted: Sat Sep 28, 2019 10:05 am
by Lars Holtet

I readded inappbrowser to the project, 3.0.0 as standard. Now it works, but the pdf only displays 1 second before it disapears again.


open pdf files internal in the app

Posted: Sat Sep 28, 2019 11:15 am
by Lars Holtet

I think this is a issue with iOS 13 and that everyone here will experience when opening pdf files.

Can you guys make a temp fix untill next appery.io update?


open pdf files internal in the app

Posted: Sat Sep 28, 2019 11:19 am
by Lars Holtet

For more info about the issue, inappbrowser does not work with ios13:

https://github.com/apache/cordova-plu...


open pdf files internal in the app

Posted: Mon Sep 30, 2019 7:56 pm
by Evgene Karachevtsev

Hello Lars,

Unfortunately, this is outside the scope of our support. We passed your issue to our development team to review, and if we have any ideas or suggestions we'll post them.