This item cannot be shared. Please select a different item.” WhatsApp iOS share extension failure message

Hello,


Unable to share NSString object using UIActivityViewController to WhatsApp.

I tried to share joke using “jokes for what’sapp” app. But once click on share button, it shows an alert displaying "This item cannot be shared. Please select a different item."

I am facing this problem after updating WhatsApp to version 2.16.2

I tried to share using below code

  NSString *stringtoshare = self.string;
  NSArray *activityItems = @[stringtoshare];
   UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];
        activityVC.excludedActivityTypes = @[UIActivityTypePostToWeibo,
                                             UIActivityTypeMessage,
                                             UIActivityTypeCopyToPasteboard,
                                             UIActivityTypeAssignToContact,
                                             UIActivityTypeSaveToCameraRoll,
                                             UIActivityTypeAddToReadingList,
                                             UIActivityTypePostToTwitter,
                                             UIActivityTypeAirDrop ];
      
        [self presentViewController:activityVC animated:TRUE completion:nil];


Can you please help me to slove this issue.

Thanks in advance..

Apparently its a bug in WhatsApp. Take a look at feedback from support.

http://stackoverflow.com/a/36856840

This item cannot be shared. Please select a different item.” WhatsApp iOS share extension failure message
 
 
Q