title: UIActivityViewController Gmail Share subject and body going empty?
body: <p>Im using UIActivityViewController to show share. In the list when i select Mail app the subject and body is set properly and where as in Gmail app its empty.</p>
  
  <pre><code>- (void)shareAVideoWithSubject:(NSString*)subject Link:(NSString *)string onViewController:(UIViewController *)viewController fromView:(UIView *)view {
  
      _activityViewController =
      [[UIActivityViewController alloc] initWithActivityItems:@[string]
                                        applicationActivities:nil];
      _activityViewController.excludedActivityTypes = @[UIActivityTypePrint, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll, UIActivityTypeAddToReadingList, UIActivityTypeAirDrop];
      [_activityViewController setValue:subject forKey:@"subject"];
  
  
      UIWindow *window = [[[UIApplication sharedApplication] delegate]window];
  
      //if iPhone
      if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
      {
          if(!viewController){
              viewController = ((SWRevealViewController*)window.rootViewController).presentedViewController;
          }
          [viewController presentViewController:_activityViewController
                                       animated:YES
                                     completion:nil];
  
      }   
      //if iPad
      else
      {
          // Change Rect to position Popover
          popup = [[UIPopoverController alloc] initWithContentViewController:_activityViewController];
          UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithCustomView:view];
          [popup presentPopoverFromBarButtonItem:barButton permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
      }
  }
  </code></pre>
  
  <p>I have check the below two questions on StackOverFlow.</p>
  
  <ol>
  <li><p><a href="https://stackoverflow.com/questions/28951113/uiactivityviewcontroller-not-showing-body-text-in-gmail">UIActivityViewController not showing body text in gmail</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/28951113/uiactivityviewcontroller-not-showing-body-text-in-gmail/28952690#28952690">UIActivityViewController not showing body text in gmail</a></p></li>
  </ol>
  
  <p>These are not answer to my question because they add up new activity in list, rather i want the iOS shows the all shareable apps. In that case Gmail share body is going empty.</p>
  
  <p>Thanks in advance.
  Adding the screenshots,
  <img src="https://i.stack.imgur.com/aP8Cs.png" alt="UIActivityViewController showing Gmail app to share"></p>
  
  <p><img src="https://i.stack.imgur.com/IlJP3.png" alt="Gmail window open with empty subject and body. Cropped the image because of company policy can show the email address"></p>