Send SMS from iPhone app [duplicate]
Possible Duplicate:
How to program开发者_运维技巧matically send SMS on the iPhone?
I wanted to design an app that would send SMS messages to your contacts from within the app in the background. However, I cannot seem to find any tutorials on it and the Apple Docs arent anyhelp. I have also read somewhere that it is outright impossible.
But if so, how does the app, iDistress manage to do it? It send text messages from preselected contacts with a custom message : http://www.buzapp.com/idistress.html
Check out the screencast.
Thanks.
Are you a registered Apple Developer? If so, you can use the 4.0 framework to show the composer window and set some of the values programatically inside of your app, without having to ever exit the app. However, you will have to wait until the new iPhone and OS4.0 comes out, roughly about June/July, to release the application.
Remember: you are not allowed to discuss details of iPhone OS 4.0 anywhere else than Apple's official Developer Forums, which you need to be a registered Apple Developer to access.
http://developer.apple.com/iphone/prerelease/library/documentation/MessageUI/Reference/MessageUI_Framework_Reference/index.html#//apple_ref/doc/uid/TP40008274
Direct access to the SMS and Email features aren't available in the official SDK. iDistress sends a request to a web service that they host (which sends out emails and text messages from their server)
I've been looking for how to do this and was told it couldn't be done. Then today, I try this new app called Highlight, and sure enough, it does it. When you sign up, you pick contacts from your list and then the app goes straight to SMS and pastes in its own text as an invite message. What do they know that we don't know?
精彩评论