by paronne » Fri Sep 13, 2013 2:13 pm
A solution tested for iOS is to open the pdf with a pdf Browser viewer by doing window.open('http://myDomain/myWeb-Services/documents/docID', '_blank')
The open target must be _blank or else will not be possible to navigate back from the pdf viewer.
Using cookies can let the user to authenticate and then to open the document.
Consider that when closing the pdf file, user will be redirected to the first page of the app; therefore the last page visited must be stored somewhere so to permit to be restored.
Unfortunatly this solution will not be enough for Android, since does not seems to support the pdf viewer inside the browser.
In this case i would follow Andrei suggestion's;
otherwise the phonegap API might help you, by let you save the pdf as a file, and then open it ( not really sure how and if is going to work, and i think that this solution is not valid for iOS instead )