Skip to content

Commit

Permalink
Merge pull request #8104 from stephenfeather/TIMOB-23311
Browse files Browse the repository at this point in the history
[TIMOB-23311] iOS simulator inabilty to send mail not restricted to a specific simulator version
  • Loading branch information
hansemannn committed Jul 2, 2016
2 parents 4183920 + a51f0e0 commit e5e2560
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iphone/Classes/TiUIEmailDialogProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ - (id)isSupported:(id)args
{
#if TARGET_IPHONE_SIMULATOR
if([TiUtils isIOS8OrGreater]) {
DebugLog(@"[INFO] iOS 8 Simulator does not support sending emails. Use a device instead.");
DebugLog(@"[INFO] iOS Simulator does not support sending emails. Use a device instead.");
return NUMBOOL(NO);
}
#endif
Expand All @@ -84,9 +84,9 @@ - (void)open:(id)args

#if TARGET_IPHONE_SIMULATOR
if([TiUtils isIOS8OrGreater]) {
DebugLog(@"[INFO] iOS 8 Simulator does not support sending emails. Use a device instead.");
DebugLog(@"[INFO] iOS Simulator does not support sending emails. Use a device instead.");
NSDictionary *event = [NSDictionary dictionaryWithObject:NUMINT(MFMailComposeResultFailed) forKey:@"result"];
[self fireEvent:@"complete" withObject:event errorCode:MFMailComposeResultFailed message:@"iOS 8 Simulator does not support sending emails. Use a device instead."];
[self fireEvent:@"complete" withObject:event errorCode:MFMailComposeResultFailed message:@"iOS Simulator does not support sending emails. Use a device instead."];
return;
}
#endif
Expand Down

0 comments on commit e5e2560

Please sign in to comment.