openURL does not work in Cordova
-
openURL works fine in desktop browsers, but when built with Cordova will not open an external browser (at least on iOS). The link does nothing at all.
-
In case it helps anyone else, the solution was to create and then call the following method:
launch (url) { window.open(url, '_system') },
-
Does that actually open safari for you? openURL and the window.open above both seem to load the url into the app.
-
Here is what I had to do:
Install the Inappbrowser plugin:
http://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser/index.htmlUse:
window.cordova.InAppBrowser.open(url, ‘_system’) -
I also have that plugin installed yes. Once that is present, my method above works.