<h2>Git URL</h2> https://github.com/merbin2012/cordova-plugin-codeplay-browsertab
npm install cordova-plugin-codeplay-browsertab
$ cordova plugin add cordova-plugin-codeplay-browsertab
$ phonegap local plugin add cordova-plugin-codeplay-browsertab
$ cordova plugin rm cordova-plugin-codeplay-browsertab
$ phonegap local plugin rm cordova-plugin-codeplay-browsertab
javascript
var option= {
link:"https://tutorialcodeplay.com"
,browsertype: 0|1|2|3
};
cordova.plugins.browsertab.open(option,successCallback,errorCallback);
function successCallback(result)
{
alert(result);
}
function errorCallback(message)
{
alert(message);
}
`
Example
`javascript
var option= {
link:"https://tutorialcodeplay.com"
,browsertype: 0
};
cordova.plugins.browsertab.open(option,successCallback,errorCallback);
function successCallback(result)
{
alert(result);
}
function errorCallback(message)
{
alert(message);
}
``
Will user to ask choose the browser.
Given website will open with chrome browser tab. Will open the popup to choose the browser, if the user doesn't have the chrome browser on their mobile.
Given website will open with firefox browser tab. Will open the popup to choose the browser, if the user doesn't have the firefox browser on their mobile.
Given website will open with opera browser tab. Will open the popup to choose the browser, if the user doesn't have the opera browser on their mobile.