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?
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..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With