how to use MessageUI framework to send iMessage messages on iPhone

允我心安 提交于 2019-12-04 16:05:03

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.)

DevendranathReddy

We can send messages and mails in our iPhone application using the MessageUI-framework. It is very simple to understand. See the MessageUI-framework reference for iOS.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!