How to set UIActivityViewController Gmail Share Theme is different from the body

I am using the Gmail Share extension from Google. I provide an implementation:

- (id)activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(NSString *)activityType; - (id)activityViewControllerPlaceholderItem:(UIActivityViewController *)activityViewController; - (NSString *)activityViewController:(UIActivityViewController *)activityViewController subjectForActivityType:(NSString *)activityType; 

For an email client (from Apple) it goes into the delegate method below, but Gmail

 - (NSString *)activityViewController:(UIActivityViewController *)activityViewController subjectForActivityType:(NSString *)activityType; 

Instead, it shows an object, the same as the main text. I am wondering how to set a theme other than the main text for the Gmail Share option.

+9
ios iphone objective-c-blocks uiactivityviewcontroller
source share
2 answers

This is a GMail application problem

The bug report was completed 06/12/2017

https://productforums.google.com/forum/#!topic/gmail/UJJx4BcRJiU;context-place=forum/gmail

Another discussion on this subject:

https://github.com/BranchMetrics/ios-branch-deep-linking/issues/789

+1
source share

I struggled with this for a couple of days, and everything I could find was flagged as a known bug, but looking at Reddit this morning just for fun, I see that they managed to get at least an empty Subject field, the question is how? Can any of Reddit be? If you use the same content in a native email application, it fills the subject field with the post title, which is the expected behavior. reddit

UPDATE: Dude! This guy found how they do it in Reddit for iOS (and I noticed that Slack does it too ) https://stackoverflow.com/a/164648/how-do-you-does-you-you-you-number-files-in-javascript/2326327/ They add a lot of empty spaces at the beginning of the main text! I took a screenshot comparing the original body of Mail (left) and Gmail (right): solution

0
source share

All Articles