【问题标题】:(This Item Cannot Be Shared, Please Select a Different Item) Sharing A Simple Text To Whats App Is Not Working Since Updated To iOS 9.3 in Swift(此项目无法共享,请选择其他项目)在 Swift 中更新到 iOS 9.3 后,无法将简单文本共享到 Whats App
【发布时间】:2016-04-19 09:06:56
【问题描述】:

在 XCode 7.3 和 IOS 9.3 的最后一次更新之前,这段代码一直可以正常工作,我尝试在互联网上搜索但一无所获,所以如果有人可以在这里帮助我,那将是一个很大的帮助。谢谢你

我用来在 Swift 中分享文本的代码是这样的:-

let objectsToShare = [TextToShare]
let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)

//New Excluded Activities Code
activityVC.excludedActivityTypes = [UIActivityTypeAirDrop, UIActivityTypeAddToReadingList]

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.Phone) {
self.presentViewController(activityVC, animated: true, completion: nil)
} else { //if iPad
// Change Rect to position Popover
let popoverCntlr = UIPopoverController(contentViewController: activityVC)
popoverCntlr.presentPopoverFromRect(CGRectMake(self.view.frame.size.width/2, self.view.frame.size.height/4, 0, 0), inView: self.view, permittedArrowDirections: UIPopoverArrowDirection.Any, animated: true)

}

控制台显示此错误:-

plugin net.whatsapp.WhatsApp.ShareExtension interrupted
plugin net.whatsapp.WhatsApp.ShareExtension invalidated

在 WhatsApp 上分享时显示:

【问题讨论】:

  • 您是否尝试过从另一个应用程序到 WhatsApp 共享?也许是 Whatsapp 的问题,而不是你的?
  • 不,我没有尝试从另一个应用程序分享,但即使我也是这么想的,可能问题仅来自什么应用程序
  • Objective-C 中的什么应用程序存在同样的问题...任何解决方案?
  • 仍然没有运气,可能是来自什么应用程序
  • 它的 WhatsApp 错误....你可以 WhatsApp 支持stackoverflow.com/questions/36603921/…

标签: ios swift swift2 whatsapp share-extension


【解决方案1】:

显然,这是 WhatsApp 方面的问题。现在它已通过最新更新修复。我刚刚确认它正在与我的应用程序一起使用。所以,只需更新 WhatsApp,它应该可以工作。

【讨论】:

    猜你喜欢
    • 2016-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-22
    • 1970-01-01
    • 1970-01-01
    • 2023-03-15
    相关资源
    最近更新 更多