【问题标题】:cordova/ionic socialsharing error on Whatsapp only for IOS仅适用于 IOS 的 Whatsapp 上的科尔多瓦/离子社交共享错误
【发布时间】:2016-04-20 11:15:18
【问题描述】:

自从上次在 IOS 上将 whatsapp 更新到 2.16.2 版以来,当我尝试共享某些内容并按下收件人时出现此错误 - “此项目无法共享。请选择其他项目”,之前它运行良好!

thats the error i get on my phone

我正在使用一个名为 "cordova-plugin-x-socialsharing 5.0.12 "SocialSharing"" 的插件, xcode 上的输出是:

“已选择社交分享应用程序:net.whatsapp.WhatsApp.ShareExtension 插件 net.whatsapp.WhatsApp.ShareExtension 无效”

我在这里看到了一些本机解决方案,但无法在我的应用程序上实现它。

非常感谢您的帮助!

【问题讨论】:

    标签: ios cordova whatsapp


    【解决方案1】:

    确保您没有在函数调用中提供“主题”属性。

    $cordovaSocialSharing
    .share(message, image, link)
    

    而不是

    .share(message, subject, image, link)
    

    【讨论】:

    • 我尝试了两种方式。共享在whatsapp 以外的其他平台上运行良好。我们是否需要特殊权限才能在 whatsapp 上共享?
    • @Abhay 你能同时分享图片和文字吗?
    • 我想我们可以。
    【解决方案2】:

    为了正确工作,您必须填写所有字段:

    window.plugins.socialsharing.share("内容/文本或链接", "即使为空也必须注明主题", "与主题相同", "http://link");

    【讨论】:

    • 你能同时分享图片和文字吗?
    猜你喜欢
    • 1970-01-01
    • 2018-04-22
    • 2016-08-30
    • 1970-01-01
    • 2017-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-31
    相关资源
    最近更新 更多