Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone In-App SMS MFMessageComposeViewController Auto-Send

I am using Apple's documented methods for In-App SMS today (MFMessageComposeViewController Class Reference)

This shows a Compose Message dialog box with the recipients and the body (optionally) pre-filled. However, the user still has to push the send button.

The App, Vlingo, seems to have figured out a way to programmatically send from the composer dialog box. They pop a countdown alert (non-standard) when the ModalViewController (MFMessageComposeViewController) is displayed. After 3 seconds, the message is automatically sent and the view dismissed. I have posted a screenshot of this here.

Any thoughts on how they accomplished this?

like image 233
aryehs Avatar asked Mar 10 '26 06:03

aryehs


1 Answers

My guess is they are adding an OverlayViewController on top of the MFMessageComposeViewController and then they are programmatically calling touch event on that overlayViewController which is transferred to the modal view controller and the send button is pressed.. when the user presses "edit" on the overlayViewController, they just remove the overlayViewController so the user now has direct access to the modal view (i.e. MFMessageComposeViewController), and then the user will press the send button manually..

like image 163
Ashish Awaghad Avatar answered Mar 12 '26 05:03

Ashish Awaghad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!