PolarCape/polarcape-cordova-plugin-document-handler

Opening multiple pdfs

Opened this issue · 2 comments

I'm seeing the issue of when multiple open requests are fired, it only opens the first one.
e.g.
_.forEach(requests, function(request){
DocumentHandler.saveAndPreviewBase64File(...)//different filenames are passed in
})

Any help is appreciated!

Hi @polo1jcw

We made an investigation about your problem.
IOS devices allows only one file to preview at once, so the only way to solve your problem is to try to wait for close event and then open new document.

Br Viktor

Hi @vkajtazov,

Thank you for your timely response! It's a bummer iOS only allows one file to preview at once. Wait and open another one doesn't seem to be user friendly if they selected 10 or more documents.(endless close operation...) I will leave the issue open for a while for other people's awareness.

Peter