Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom scheme in SMS text

I've implemented a custom url scheme. It works fine if I use the scheme in an tag in html, but I want to send it in a text/plain SMS message. The scheme does not get parsed by any of the standard apps. Is there any way I can persuade apps to parse my new scheme to a link from plain text?

The scheme is "appname://go/something"

Phil

like image 876
Philip Pearl Avatar asked Mar 31 '11 18:03

Philip Pearl


People also ask

What is custom URI scheme?

Overview. Custom URL schemes provide a way to reference resources inside your app. Users tapping a custom URL in an email, for example, launch your app in a specified context. Other apps can also trigger your app to launch with specific context data; for example, a photo library app might display a specified image.

What is an SMS URL?

SMS links are links that when clicked on a mobile device, prompt a user to send an SMS text message to a predefined number.


1 Answers

I've looked into this.

The only solution is to declare "android.permission.READ_SMS" in your manifest and register a receiver to process SMS messages as they come in and parse for your custom scheme.

There is a good example of that here

That being said, please also see the response by @hackbod to this question in which she makes it clear that custom scheme's should be avoided.

like image 67
Jerry Brady Avatar answered Sep 27 '22 20:09

Jerry Brady