使用branch_match_id获取链接?

时间:2016-12-02 11:32:47

标签: javascript angularjs branch.io

在我的应用程序中,我有以下链接:hxxp://get.livesoccer.io/IuKk/0CRq5vArLx重定向到:

hxxp://livesoccer.io/news.html URL = HTTP%3A%2F%2Fwww.90min.com%2Fembed%2Fposts%2F4003374切尔西星级佩德罗爱好寿命-AT-斯坦福桥-after-这个夏季-S-失败 - 移动到巴萨%3Fpartner%3D353549%26show执笔者%3Dtrue%26show最新%3Dtrue%26show-读取柜台%3Dtrue%26show标题%3Dtrue%26utm_medium%3Dapi %26utm_source%3DLiveSoccer%2B-%2Blive%2Bscores&安培; _branch_match_id = 322721456099402785

我想要做的是使用branch_match_id(322721456099402785)重建原始链接(http://get.livesoccer.io/IuKk/0CRq5vArLx)。如何使用来自branch.io的Web SDK?

2 个答案:

答案 0 :(得分:0)

来自Branch.io的Alex:branch_match_id不是为此而设计的。您想查看init()函数,它将返回原始的分支链接URL以及其他有用的参数。 Read about it in our documentation here

答案 1 :(得分:0)

根据@Alex Bauer的回答,目前没有内置方法可以单独从branch_march_id获取原始分支链接,所以如果你不能在init()上加载深层链接信息,那么另一种方法是附加转换链接时查询参数的原始链接,以便能够恢复/重定向到原始链接。