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
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.
I think the answer is that this isn't possible. We ended up using an http: link instead
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
链接地址: http://www.djcxy.com/p/51840.html上一篇: 阴谋和NSDate(iPhone)
下一篇: SMS文本中的自定义方案