“此项目无法共享。请选择其他项目。“ WhatsApp iOS共享扩展失败消息 [英] "This item cannot be shared. Please select a different item." WhatsApp iOS share extension failure message

查看:1730
本文介绍了“此项目无法共享。请选择其他项目。“ WhatsApp iOS共享扩展失败消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此错误由WhatsApp团队于2016年5月23日修复(版本号2.16.4)。

This bug is fixed by WhatsApp team on 23rd May, 2016 (build no. 2.16.4).

无法使用 UIActivityViewController 与WhatsApp共享NSString对象。

Unable to share NSString object using UIActivityViewController to WhatsApp.

我尝试使用以下代码共享。但是,一旦从列表中选择了联系人,它就会显示一条警告,显示此项目无法共享。请选择其他项目。

I tried to share using below code. But once contact is selected from the list, it shows an alert displaying "This item cannot be shared. Please select a different item."

代码

NSString *shareText = @"Temp text to share";
NSArray *itemsToShare = @[shareText];

UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:itemsToShare applicationActivities:nil];

将WhatsApp更新到版本2.16.2后我遇到了这个问题

I am facing this problem after updating WhatsApp to version 2.16.2

推荐答案

收到WhatsApp团队的回复

Received a response from WhatsApp team


- WhatsApp支持 -



您好,

- WhatsApp Support -

Hi,

对不起,我们推迟了!我们最近收到了很多电子邮件,我们最好回答所有问题。感谢您的耐心等待。

Sorry for the delay! We have received many emails recently, and we do our best to answer them all. Thank you for your patience.

感谢您告知我们有关此问题的信息;它将在WhatsApp的
未来版本中修复。不幸的是,我们无法评论任何
的未来时间表,抱歉。感谢您持续的耐心和WhatsApp的
支持。

Thank you for informing us about the issue; it will be fixed in a future version of WhatsApp. Unfortunately, we cannot comment on any future timelines, sorry. Thank you for your continued patience and support of WhatsApp.

干杯,汉斯

因此,他们承认该错误并将在下一版本中解决此问题。

So, they acknowledge the bug and will fix this in the next release.

可能的解决方法=>


  • 直到可以使用UrlSchemes分享明文+网址。按照
    Spydy的回答

    OR

  • 可以使用
    activityCategory创建UIActivity的子类作为带有whatsapp图标的UIActivityCategoryShare。然后,当用户选择它时,
    将使用urlschemes来共享文本。对于此用途, JBWhatsAppActivity

    OR

  • 只需共享NSUrl对象即可共享网址。完成修复后,您可以恢复共享纯文本和网址。

  • Till then one can use UrlSchemes to share plaintext+url. Follow Spydy's answer.
    OR
  • One can create subclass of UIActivity with activityCategory as UIActivityCategoryShare with whatsapp icon. Then when user selects it, will use urlschemes to share text. For this use JBWhatsAppActivity
    OR
  • Just share NSUrl object for sharing url. Once the fix is done you can revert to sharing plain text and url.

这篇关于“此项目无法共享。请选择其他项目。“ WhatsApp iOS共享扩展失败消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆