diff --git a/src/plugins/custom-tabs/plugin.xml b/src/plugins/custom-tabs/plugin.xml index ca9ef71bc..c0ccc4fde 100644 --- a/src/plugins/custom-tabs/plugin.xml +++ b/src/plugins/custom-tabs/plugin.xml @@ -3,6 +3,11 @@ xmlns:android="http://schemas.android.com/apk/res/android" id="com.foxdebug.acode.rk.customtabs" version="1.0.0"> Custom Tabs + + + + + diff --git a/src/plugins/custom-tabs/www/customtabs.js b/src/plugins/custom-tabs/www/customtabs.js new file mode 100644 index 000000000..2c020c228 --- /dev/null +++ b/src/plugins/custom-tabs/www/customtabs.js @@ -0,0 +1,11 @@ +var exec = require('cordova/exec'); + +exports.open = function (url, options, success, error) { + exec( + success, + error, + 'CustomTabs', + 'open', + [url, options || {}] + ); +}; \ No newline at end of file