I have a delphi server developed with DMVCFramework. I've developed a web app with html/jQuery for the client side and all works fine. Now i want to creare an hybrid mobile app (for android) that interacts with this server using Cordova and AngularJS. In the server there is a method that returns a file from id in the url. The method doesn't save the file in the server but set content-stream in the http response. In the web app, i call this method from url simply, example {server}/document/34 and the file is shown in the browser (for example if it is a pdf file) or the brower asks me to download it. In the app, if i call the url with
<a nghref="{server}/document/34">view doc<a/>
nothing happens. if i use
<iframe ngsrc="{server}/document/34"><iframe/>
or
window.open("{server}/document/34")
and i inspect emulator with Chrome, in the console appears
Resource interpreted as Document but transferred with MIME type application/pdf
Also i've tried to install inappbrowser plugin of cordova but the result is the same. The same html/js(angularJS) files work fine if i call them from the desktop browser or android default browser
Help me please! :)
0 comments:
Post a Comment