Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 12.2 PDF not Viewing #262

Open
CetasLakshman opened this issue Jun 3, 2019 · 3 comments
Open

iOS 12.2 PDF not Viewing #262

CetasLakshman opened this issue Jun 3, 2019 · 3 comments
Labels

Comments

@CetasLakshman
Copy link

Expected Behaviour

To Display the PDF on Default PDF Viewer.

Actual Behaviour

It Display Empty Screen.

Reproduce Scenario (including but not limited to)

Installed on I Phone 6S and Export any PDF from App

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Platform: iOS 12.2

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Cordova CLI info

8.1.2

cordova info

Here is the output:

Plugin version

cordova plugin version | grep cordova-plugin-file-opener2

Here is the output:

Cordova Plugin Version 2.2.0.

Sample Code that illustrates the problem

Logs taken while reproducing problem

No Error on App.

@shnist
Copy link
Collaborator

shnist commented Jul 8, 2019

hi @CetasLakshman, thanks for raising this issue. Are you able to provide a snippet of the code that you are using to try and display the PDF file?

@mrodal
Copy link

mrodal commented Jul 31, 2019

Im having an issue too.. idk if its relate to this, but I can open pdfs on the emulator perfectly, but not on the real device.. unfortunately I dont have access to the real device to debug it right now :(

Happens only in iOS

Here's the code Im using to open the file:

async openDoc(state, { doc, tipoDoc }) {
      let filePath = await Filesystem.getUri({
        path: getDocPath(doc, tipoDoc),
        directory: FilesystemDirectory.Application,
      });
      try {
        await FileOpener.open(filePath.uri, 'application/pdf');
      } catch (e) {
         // Log 
      }
    },

@mrodal
Copy link

mrodal commented Aug 1, 2019

Ok, I found my problem, I cant write to the app directory, here's some more detail:
https://stackoverflow.com/a/3439986/3552458

@pwlin pwlin added the ios label May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants