2

This code used to work fine till the last update of XCode 7.3 and IOS 9.3, I tried searching over the internet but got nothing, So if anyone can help me out here would be a great help. Thank You

The code I am using to share the text in Swift is this:-

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)

}

The console show this error:-

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

And while sharing on Whats App shows this:

Screenshot from mobile

Irshad Qureshi
  • 807
  • 18
  • 41

1 Answers1

1

Apparently, this was an issue from WhatsApp's side. And it's now fixed with the latest update. I just confirmed it's working with my app. So, just update WhatsApp and it should work.

Sloba
  • 66
  • 4