开发者

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 ev开发者_如何学JAVAer gone though this? Could we get a real assert that the sms has been properly sent?

Thanks a lot.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜