Santosh Shinde Santosh Shinde - 5 months ago 48
Javascript Question

pdf read work in browser but not in mobile device in Ionic app

I have use the angularjs-pdf to show the pdf from remote in mobile app using Ionic Framework.

It shows the pdf in browser but it mobile device the blank screen.

Also I have use sample template example from here.

If it is not supported please suggest me plugin or another any way to display pdf in mobile app itself.

Answer

You can try to show the pdf in the webview using the

http://docs.google.com/viewer?embedded=true&url=<your-url> 

to show the remote pdf, because in android, the webview doesn't directly support to view pdf.