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!
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.
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.
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
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With