UIActivityTypeMail does not parse mailto: urls correctly

Originator:paddy
Number:rdar://14216662 Date Originated:20-Jun-2013 11:52 AM
Status:Open Resolved:No
Product:iOS SDK Product Version:iOS 6
Classification:UI/Usability Reproducible:Always
 
Summary: 
The documentation for UIActivityTypeMail specifies that a mailto: url can be passed in as one of the activity items.


Steps to Reproduce:
NSURL *mailURL = [NSURL URLWithString:@"mailto:?Content-type=text/html&subject=Awesome%20Photo&body=Check%20it%20out"];
        
UIActivityViewController *vc = [[UIActivityViewController alloc] initWithActivityItems:@[mailURL] applicationActivities:nil];
    
[self presentViewController:vc animated:YES completion:nil];


Expected Results:
The mail sheet would be presented with the subject "Awesome Photo" and the body would read "Check it out".


Actual Results:
The mail sheet is presented with a body that reads "mailto:?Content type=text/html&subject=Awesome%20Photo&body=Check%20it%20out"


Regression:
Not really a regression since iOS 5 did not have UIActivity however iOS 5 was able to parse mailto: urls  when using

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:mailtoURL]];


Notes:
http://developer.apple.com/library/ios/documentation/uikit/reference/UIActivity_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40011974-CH1-DontLinkElementID_4

Duplicate of rdar://13914230
Duplicate of rdar://12393854
Duplicate of rdar://12858829

I have confirmed that this issue is still present in apps built using the iOS7 SDK both on devices running iOS 6 and those running iOS 7.

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!