Open external URL on IOS

Hi,

I want to open external URL in a system browser. I have the following code which work on Android, but not on iOS. on iOS simply nothing happens, no errors in the console, etc.

<button ion-item href="#" onclick="window.open('https://www.instagram.com/pagetopen/', '_system');">

I don’t have the inAppBrowser plugin installed, I don’t want inapp but the system browser. Do I have to install inApp browser to open URLs in system browser? I’d rather avoid installing it if possible.

How can I get this to work? Thanks!

Yes you have to install the inapp browser plugin.

Just pass the _system target to it when you open the site as documented: https://github.com/apache/cordova-plugin-inappbrowser#cordovainappbrowseropen