how to use MessageUI framework to send iMessage messages on iPhone
Is it possible to send messages from insi开发者_如何学Gode an app, using MessageUI framwork on iPhone?
Or, is there an URL Scheme for iMessage?
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.
The iMessage URL scheme on iPhone (still) appears to be sms:imessageid
where imessageid
is the AppleID associated with iMessage or the phone number. This will work on iPhone but does not work with Messages on the (Mac) OS X.
The Messages URL scheme on MacOS X is 'imessage:imessageid' where imessageid
is the AppleID associated with iMessage. This will launch the Messages App on OS X, but will not launch the iMessage App on iPhone. (I assume that the latter will also work on iPhone some day.)
精彩评论