how to use MessageUI framework to send iMessage messages on iPhone

mxg picture mxg · Jun 23, 2011 · Viewed 8.4k times · Source

Is it possible to send messages from inside an app, using MessageUI framwork on iPhone?

Or, is there an URL Scheme for iMessage?

Answer

rckoenes picture rckoenes · Jun 23, 2011

With iOS 4.* you can send email and SMS from inside your app. Using the MessagUI viewController. Since iOS 5 is still under NDA we can not discus any new API's here

I've checked the documentatie and there is no mention of iMessage in there. Still the system might send the message via iMessage but you will not be notified about it.

The main reason for this is that iMessage is transparent in the system, it start out as the normal SMS application, and if the system detect that the other party also has iOS 5 it will switch to iMessage.