Opening links in external browser

Hi,

In my app, I use the InAppBrowser plugin to open external links. However, in one specific case I would like the link to be opened using the native system browser instead.

In this case, I want to link to a Google Maps route URL.

When I remove the target attribute - the URL is opened within the app and there is no way to leave the external URL.

So my question is, is there a way to have the URL be opened with the native browser instead of the IAB?

  1. Open link: window.open(url, ‘_system’);
  2. Install https://github.com/apache/cordova-plugin-inappbrowser/
1 Like

@shastox

I was so close, but missing the '_system' part. After adding that, it works. Thank you very much!

1 Like

Where I find the “Cordova.js” files, in order to map window.open to cordova.InAppBrowser.open()?