dimanche 10 mai 2015

Cordova app: PDF is displayed to the user without having them choosing a browser for it

I am working on mobile application using IONIC - Cordova framework. I want to open PDF in android device native browser without open dialog box for selecting browsers to in front of the user(In Android devices).

Below code I am using right now:

navigator.app.loadUrl(url, { openExternal: true });

But when I click on the PDF icon, first it is opening dialog box for selecting the bowers. For ref, dialog box content is, Complete action using "Chrome", "Internet", "Adobe Reader".. etc.

I don't want to browser selection steps in between. So when I taps on PDF icon in device, it should directly open PDF in default native browser. This i want to do.

I am using Samsung device. Let me know if it is a particular device issue.

Please help me out.

Thanks.

Aucun commentaire:

Enregistrer un commentaire