if (types_android[type] != undefined) {
this.displayLoader();
setTimeout(function () {
- CDV.WEBINTENT.startActivity({
- action: CDV.WEBINTENT.ACTION_VIEW,
+ window.plugins.webintent.startActivity({
+ action: window.plugins.webintent.ACTION_VIEW,
type: types_android[type],
url: url
}, function (args) {
if (this.datas.phonegap == 'android') {
var extras = {};
- extras[CDV.WEBINTENT.EXTRA_SUBJECT] = subject;
+ extras[window.plugins.webintent.EXTRA_SUBJECT] = subject;
extras[CDV.WEBINTENT.EXTRA_TEXT] = body;
- CDV.WEBINTENT.startActivity({
- action: CDV.WEBINTENT.ACTION_SEND,
+ window.plugins.webintent.startActivity({
+ action: window.plugins.webintent.ACTION_SEND,
type: 'text/plain',
extras: extras
}, function (args) {