Android Cordova应用程序IOS中的社交共享

Android Cordova应用程序IOS中的社交共享,android,ios,cordova,cordova-plugins,Android,Ios,Cordova,Cordova Plugins,我正在尝试使用以下插件分享图像,特别是在微信和WhatsApp中: 我的应用程序在ios上崩溃了,但在android上运行良好 通过使用另一种方法shareViaWhatsapp: window.plugins.socialsharing.shareViaWhatsApp('Message via WhatsApp' ,'images/hello.png', function() { console.log('share ok') }, function(e

我正在尝试使用以下插件分享图像,特别是在微信和WhatsApp中:

我的应用程序在ios上崩溃了,但在android上运行良好

通过使用另一种方法shareViaWhatsapp:

window.plugins.socialsharing.shareViaWhatsApp('Message via WhatsApp' 
  ,'images/hello.png', function() {
        console.log('share ok')
        }, function(errormsg){
           alert(errormsg)
        })

这种方法在安卓系统中有效,但在ios系统中,如果我只共享信息,它会在ios系统中正常工作,那么在我共享图像时,它会显示所有要共享的应用程序。请指导我。

与shareViaWhatsApp共享whatsApp在iOs上不起作用,我可以确认。 我能分享照片的唯一方法就是使用你提到的插件共享表。 所以它有点像:

this.socialSharing.share(null,null,this.screen,null)。然后(()=>{
console.log(‘成功共享测试’)
this.shareWhatsApp()
}).catch((e)=>{
console.log('err share test')
this.shareWhatsApp()

});非常感谢,但您使用的默认共享表是正确的
window.plugins.socialsharing.shareViaWhatsApp('Message via WhatsApp' 
  ,'images/hello.png', function() {
        console.log('share ok')
        }, function(errormsg){
           alert(errormsg)
        })