Currently i am working on opening pdf document in angularjs w.r.t. desktop/ mobile also. i have followed this ref.: Open a PDF in a new window of the browser with angularjs there similar implementation i have done : code is as follows
**$http.get('generatePdfUrl')
.then(function (data) { // data is your url
var file = new Blob([data], {type: 'application/pdf'});
var fileURL = URL.createObjectURL(file);
});**
even i have applied responsetype : 'arraybuffer' as well, in the angularjs web application this url points to blob://http://localhost:8080/126gyesdfsdfadjf, its is opening pdf document properly with window.open(fileURL), but the same is not working for the angularjs mobile application using cordova build, there application url points out to blob:file///126gyesdfsdfadjf, but unable to open pdf document, can anybody have suggestions on this. regars, vasu.