我在我的 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上分享超链接消息需要做什么