Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch an app from a link in an SMS

Tags:

iphone

sms

I have a very strange requirement...
I need to launch my app from let's say, a hyperlink that is received in an SMS.
Can this be done somehow?
I mean, the person who receives the SMS simply taps on the link provided in the "special SMS", and that launches the application.
Something like a special link which invokes the app in the device...

I have stumbled into an article that shows how message body can be created and sent programmatically in iOS4 and I think that might help me in the creation of the "special message"
So creation of the message may not be an issue here... :|
It's the invocation part...
Anybody knows what can be done???
Suggestions and sample codes greatly appreciated... :)
Thanks in advance!

like image 271
Bangdel Avatar asked Aug 18 '10 13:08

Bangdel


People also ask

Can you embed a link in an SMS?

Can you insert a hyperlink in a text message? No, you can't add SMS hyperlink text into text messages yet. Hyperlinked text only works in emails and on web pages.

How do you open a link in a message?

3. Tap the hyperlink to open it if your phone has a touch screen. If your phone has a trackball, use it to highlight the link and then press down on the trackball. For other phones, use the arrow keys to highlight the link and then press "Enter" to open the link in your phone browser.


2 Answers

Good news, it is possible and quite simple (really easy in fact)

Take a look at this tutorial

Update : it seems that the SMS app doesn't auto recognize that address type

like image 76
Francescu Avatar answered Nov 15 '22 21:11

Francescu


What you need to do is get your app to respond to a custom URL sequence, such as myApp://open

Apple has documentation on this:

https://developer.apple.com/documentation/uikit/core_app/communicating_with_other_apps_using_custom_urls

if you need more help, please ask.

This will also work with mail and webpages, anywhere you can put a clickable link...

like image 45
Tom H Avatar answered Nov 15 '22 21:11

Tom H