I am trying to use DocumentHandler to display PDF documents that are created in an InAppBrowser using PhoneGap Build.
DocumentHandler opens the PDF without any problem... but on iOS the Quick Look window is hidden behind the PhoneGap InAppBrowser window. I can only see the PDF if I close the InAppBrowser window that was used to create it.
Is there some type of z-index option for layering the windows?
It works fine on Android.
I suspect this is a PhoneGap or InAppBrowser bug, but thought I would ask here also.
config.xml:
<plugin name="ch.ti8m.documenthandler" spec="0.2.1" source="pgb" />
index.js:
displayStraightFromURL: function (uri) {
alert("showing pdf:" + uri);
try {
handleDocumentWithURL(
function () { alert('success'); },
function (error) {
alert('failure:' + error);
if (error == 53) {
alert("Your device does not have an apop to display PDF. Please download one from the Store.");
}
},
uri);
}
catch (err) {
alert("err:" + err.message);
}