I am using message, mail and whatsapp to share in UIactivityViewController. The completion handler is working fine for message and mail share but for whatsapp, the completion handler always returns true. Is this the problem with Whatsapp or iOS?
The code I am using is:
self.presentViewController(activityViewController, animated: true, completion:nil)
activityViewController.completionWithItemsHandler = {(activityType, completed:Bool, returnedItems:[AnyObject]?, error: NSError?) in
// Return if cancelled
if (!completed) {
return
}
//activity complete
//some code here
}
}