iPhone - Send SMS message from within an app

Hi,

Is it possible to send an SMS message from within an app using Beta 3 of the SDK? What Framework are the messaging classes embedded in? Is it better to just link via a URL to the SMS application? A bit stumped on this one.

Cheers,

Stu

Mac Pro, Mac Mini (G4 and Intel), MacBook running, Mac OS X (10.5.2), as well as iPhone and Time Capsule

Posted on Apr 14, 2008 8:30 AM

Reply
45 replies

Jun 6, 2008 7:25 AM in response to de-design

de-design, can you elaborate more on how that "sms:" url works? Specifically, is there a way to specify content for the sms message, similar to how mailto: links work?

I've figured out that you can specify a phone # for the message, using "sms:/123456789" (to place 123456789 in the To: field), but I have been unable to set the message body.

Any help you or others have will be very appreciated.

Jun 18, 2008 8:34 AM in response to Big Stu

Has anyone found a solution to this yet? I have the 'tel' version working, but many phones, including Nokias, allow for sms:

Could it be that it just doesn't work in the simulator?

Jul 10, 2008 12:49 PM in response to Big Stu

I've found the iSMS source code contains some routines for sending SMS messages. Looking through them, they don't seem to be the exact routines that Apple have used in the SMS app (I doubt Apple would release code with a failure message that simply says "Sh*t"), but they may just do the job.

Has anyone else had any success with these?

The iSMS source code is at:

http://code.google.com/p/weisms/downloads/detail?name=isms-1.0-rc1-src.tar.gz&ca n=2&q=

Cheers,

Stu

Aug 22, 2008 3:15 PM in response to aapl.crox

I honestly be surprised if Apple provided a mechanism for autonomously sending an SMS message.

Launching the SMS application ready to send to a given number is one thing, but having the body populated (and presumably sent) would be a BIG problem. Two things immediately jump to mind:

1. Privacy; this would allow an application to send a message to an outside entity not necessarily approved of by the user. This entity would then know that user's phone number whether or not the user wanted that entity to know their phone number.

2. Since SMS is a for-pay service for many people, allowing this would be tantamount to allowing a third party to control my billing.

rob.

Aug 23, 2008 1:17 AM in response to Big Stu

Judging by the number of views to the original question, it seems like a lot of people are looking for a way to send a SMS from their application. I don't buy the whole argument about security since any application could grab some data from your device it post-it-away over http and you wouldn't know about it. On the Blackberry you can easily send and receive sms messages from your own code. Of course your application is also signed with your developer signature similar to the iPhone.

Aug 23, 2008 8:08 AM in response to aperez2004

The issue is not security, but privacy.

Yes any application could connect to WiFi and send data, however... that does not provide the phone number phone number to your cell phone (and possibly result in a charge to you based on your wireless plan), whereas sending an SMS message does.

Thus far, Apple seems to have taken Privacy very seriously, example: the they pulled an application from the app store that sent, without the user's consent, the contents of their address book.

Like I said, I could see them allowing access to SMS, but the actual sending of the SMS would have to be up to the user and not over autonomous control of an arbitrary third party application.

rob.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iPhone - Send SMS message from within an app

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.