Run/build produce different results with ng2-pdf-viewer


#1

Hello,
We have ng2-pdf-viewer in our app. The PDFs are displayed as expected when the app is opened on the device through: ionic cordova run ios. Feedback comes in the console, too:
[14:49:55] console.log: onProgress PDF: {“loaded”:2609}
[14:49:55] console.log: onProgress PDF: {“loaded”:2609,“total”:2609}
[14:49:55] console.log: onProgress PDF: {“loaded”:23497}
[14:49:55] console.log: onProgress PDF: {“loaded”:23497,“total”:23497}

Unfortunately, when the app is built with: ionic cordova build iOS and installed on the device through xCode, the PDF is not displayed. There is no error or onProgress feedback sent.

Does anyone know why “ionic cordova run ios” and “ionic cordova build ios” would produce different results?

Thank you,
Paul


#2

See:


#3

Thanks for the suggestions, but things are not working yet.

It seems odd that the build and run commands would produce different results on the device.


#4

After removing and adding the webview plugin, we can see PDFs again. :slight_smile: