I have PDF located in server which is secure on vpn and can be viewed with credential, I am trying to use webview to load it. whenever I hit that endpoint, it popup window for credential which I successfully autofill with onReceivedHttpAuthentication() overide method of webview. To load that pdf I am using webView.loadUrl(" https://docs.google.com/gview?embedded=true&url ="+ pdfUrl).
This do not load pdf in my webview. To check the problem I try to change the URL with without crednetial pdf which doesnt required any credential, this work fine, I can see the pdf in my webview.
What could be issue here? With the same credential I am able to view pdf in google chrome browser.