UIActivityTypeMail does not handle mailto NSURLs
| Originator: | Roben.Kleene | ||
| Number: | rdar://14251467 | Date Originated: | 6/24/2013 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 6.1 |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
The UIActivityTypeMail documentation says "You may also specify NSURL objects whose contents use the mailto scheme", but passing a URL that uses the "mailto:" scheme is not treated any differently than a regular NSURL.
Steps to Reproduce:
Return an "mailto:" NSURL for a UIActivityTypeMail from a UIActivityItemSource data provider, for example:
- (id)activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(NSString *)activityType {
if ([activityType isEqualToString:UIActivityTypeMail]) {
return [NSURL URLWithString:@"mailto:?to=&subject=mailto%20with%20examples&body=http://en.wikipedia.org/wiki/Mailto"];
}
return [NSURL URLWithString:@"http://en.wikipedia.org/wiki/Mailto"];
}
Expected Results:
The Mail message will use the the data provide in the "mailto:" scheme to populate the Mail "subject:" and "body:" fields.
Actual Results:
The "mailto:" URL itself is used as the body of the Mail message.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!