This question is locked. New answers and comments are not allowed.
Hello,
I'm currently doing an app for iOS and Android. I need to open pdf in native browser for both. I already did it but here, all parts of code I know didn't work. Do you have any idea ?
I used :
Android :
navigator.app.loadUrl(href, { openExternal: true });
Both
window.open(href, '_system');
window.open(href, '_blank');
<a href="someurl.html" rel="external" target="_blank">
<a href="someurl.html" rel="external" target="_system">
No one works : on Android it does nothing, and on iOS it opens the pdf winthin the app, so with must reboot the app to get out of it !
Please help me I'm becomming crazy because this works on another project and not here..
Tried with Cordova 2.4 & 2.7 versions
I'm currently doing an app for iOS and Android. I need to open pdf in native browser for both. I already did it but here, all parts of code I know didn't work. Do you have any idea ?
I used :
Android :
navigator.app.loadUrl(href, { openExternal: true });
Both
window.open(href, '_system');
window.open(href, '_blank');
<a href="someurl.html" rel="external" target="_blank">
<a href="someurl.html" rel="external" target="_system">
No one works : on Android it does nothing, and on iOS it opens the pdf winthin the app, so with must reboot the app to get out of it !
Please help me I'm becomming crazy because this works on another project and not here..
Tried with Cordova 2.4 & 2.7 versions