0

I'm trying to open a link in the default browser like this:

window.open("http://example.com", '_system');

But it is not working and is instead opened in the main webview window of the app. I noticed that when I remove

<allow-navigation href="http://example.com/*" />

from config.xml, then window.open works as expected and the default browser app is launched.

How can I achieve the same result but with keeping allow-navigation, perhaps adding an exception or?

php_nub_qq
  • 13,981
  • 19
  • 68
  • 133
  • Does this answer your question? [phonegap open link in browser](https://stackoverflow.com/questions/17887348/phonegap-open-link-in-browser) – Eric Jan 20 '22 at 18:48

0 Answers0