tags:

views:

514

answers:

4

Hi,

Im new to iphone application development. I have a sample application that needs to be launched from a SMS message. I have no idea on how to do this. Please help me.

Thanks In Advance!

+4  A: 

Allow your application to respond to some url (eg: myapp://launch ) and include the url in the SMS, when the user launches that URL your application will launch.

I'm sure that is not the most straight forward way (since the SMS needs to include your custom URL) but I don't know if it is possible with any arbitrary SMS to launch an arbitrary applciation

do a google on iphone URL scheme and you will find lots of detail on how to implement this

here is an example

hhafez
Can you also please tell me how to make my application respond to an url?
saikamesh
I am able to make my application respond to an url. When that url is typed in safari, it opens the application. I haven't tested this with SMS. Thanks for your help.
saikamesh
tell us how it goes
hhafez
sure, I will let you know. Im unable to test it, since the device is unavailable. I don't think I can test this feature in simulator(composing a SMS message with the url).
saikamesh
+4  A: 

Note that if SMS operates in the same manner as Mail on the iPhone, you'll need to enclose your custom URL in brackets to make it launch the application responding to that scheme. For example,

<yourapp://yoururl>

will work, but

yourapp://yoururl

will not.

Brad Larson
Thanks for giving me more info
saikamesh
That is an awesome tip, thanks for passing that along.
Kendall Helmstetter Gelner
A: 

It works fine. thanks hhafez!

I composed a SMS with url format "myapp://". It didn't work. Then I tried "", then it worked. thanks Brad!

saikamesh
<myapp:// >
saikamesh
Good to hear it worked for you, you should close the question then ;)
hhafez
A: 

saikamesh, I don't understand about ... I need more examples, for example, you used:

<myapp:// >myapp://yoururl</myapp>

Is this correct?

Thanks!

Rodrigo Schmitt