From the documentation of InAppBrowser (https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser)
If you want all page loads in your app to go through the InAppBrowser, you can simply hook window.open
during initialization. For example:
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.open = cordova.InAppBrowser.open;
}
How can i do this in ionic since the function open doesn't exist?
The urls i want to open are dynamic and comes from a server, so i don't know them in advance.