开发者

Custom scheme in SMS text

I've implemented a custom url scheme. It works fine if I use the scheme in an tag in ht开发者_高级运维ml, 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.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜