Setting up config.xml to use InAppBrowser plugin

Hello everybody
my needs is open an url in default browser from my app

So i install the cordova inAppBrowser plugin with npm install -g … .git

i put the configuration for Ios and Android in my config.xml file like


And last i use the following function to open my url
$scope.GoToLink = function (url) {
//alert(url);
window.open(url, ‘_system’,‘location=yes’);
};

but i get all url opening in my view and not in default browser of the device,

thanks

Try installing Plugin using cordova

cordova plugin add cordova-plugin-inappbrowser

document.addEventListener(“deviceready”, onDeviceReady, false);
function onDeviceReady() {
window.open = cordova.InAppBrowser.open;
}

Sorry,
i have installed my plugin with cordova command (ver 4.3.0) because the latest one (5.1.1) was not working

i’m setting up with ionic and i already try to do this:
.run(function($ionicPlatform) {
$ionicPlatform.ready(function () {
window.open = cordova.InAppBrowser.open;
});
});