toupper
toupper

Reputation: 636

MessageComposeResult is sent even if the message send failed

I am using MFMessageComposeViewController to send sms within my app. Everything is correct until i try to get the result of the operation. Actually the Message sending failed as It can be seen in the SMS native app (I have no service in the sim card), but I get MessageComposeResultSent in - (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result.

Have you ever gone though this? Could we get a real assert that the sms has been properly sent?

Thanks a lot.

Upvotes: 2

Views: 1258

Answers (1)

Swapnil Luktuke
Swapnil Luktuke

Reputation: 10475

Here is a snippet from the MessageComposeResult struct's discussion in MFMessageComposeViewController.h :

Typically MessageComposeResultSent will be sent, but MessageComposeResultFailed will be sent in the case of failure. Send may only be interpreted as a successful queueing of the message for later sending. The actual send will occur when the device is able to send.

Upvotes: 3

Related Questions