使用Cordova社交共享插件在Sencha应用程序中使用超链接文本进行社交共享

时间:2015-08-07 05:36:03

标签: javascript cordova extjs whatsapp socialshare

我在我的sencha应用程序中添加了插件

cordova plugin add nl.x-services.plugins.socialsharing

用于电子邮件共享图像和文本

window.plugins.socialsharing.ShareViaEmail('<a href="www.hello.com">Message via WhatsApp</a>', 'www/image/demo.png', 'https://hello.com', function() {console.log('share ok')}, function(errormsg){alert(errormsg)})

用于共享图像和文本的whatsapp

window.plugins.socialsharing.shareViaWhatsApp('<a href="www.hello.com">Message via WhatsApp</a>', 'www/image/demo.png', 'https://hello.com', function() {console.log('share ok')}, function(errormsg){alert(errormsg)})

该方法适用于电子邮件和whatsapp,但邮件正在电子邮件中共享 就像我们点击消息“通过WhatsApp消息”它将重定向到hello.com 但在whatsapp消息中与href标签共享

请建议我在whatsapp上分享超链接消息需要做什么

0 个答案:

没有答案