PhoneGap Android app not displaying pdf data
I have a PhoneGap app for Android which I am trying to run in the Android emulator. The app has a simple html page which has a button. On click, the button calls a RESTful webservice using javascript XMLHttpRequest and the service returns back base 64 encoded data for a pdf. Then from the javascript function, I try to load the pdf data in my html page in the app as below document.location.href = 'data:application/pdf;base64,' + pdfData.childNodes[0].data; But this does nothing. The data is returned correctly and I checked the logs for it. But the pdf is not displayed at all. Any idea what is c
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.