I need to customize the default message composer as at To: I need to diplay the recipient number and body contains an automatic message.
Can it possible to send this message without user interaction as he need not to be tap on to the send button.
Thanks to all,
Monish.
The documentation for
MFMessageComposeViewControllershows that you can programmatically set thebodyand therecipientsof a text message. It does not, however, expose an API to send the message automatically. The framework requires user interaction.It would be a terrible thing if an app could send a text message without user intervention. If that were possible, then apps could fire off as many text messages as they wanted, to whomever they wanted, all while charges are getting applied to the user’s cell phone bill. That’s a lawsuit waiting to happen.
So in a nutshell, you can pre-fill in some stuff, but the user will still have to tap the “Send” button.