7

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

Philip Pearl
  • 1,503
  • 16
  • 24

3 Answers3

3

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.

Community
  • 1
  • 1
Jerry Brady
  • 2,951
  • 22
  • 30
  • 1
    That wasn't really my point. I wanted apps that show SMSs to "linkify" the urls when they show them. But it seems there is no universal registry of valid schemes in android. – Philip Pearl Feb 25 '12 at 12:15
2

you can use tapstream / deeplink.me to do that.. it will also redirect the user to the relevant app store if he doesn't have the app installed. That's what we are doing in paybox and it works great

1

I think the answer is that this isn't possible. We ended up using an http: link instead

Philip Pearl
  • 1,503
  • 16
  • 24