使用 branch_match_id 获得 link?

Get a link using branch_match_id?

在我的应用程序中我有这个 link: hxxp://get.livesoccer.io/IuKk/0CRq5vArLx 重定向到这个:

hxxp://livesoccer.io/news.html?url=http%3A%2F%2Fwww.90min.com%2Fembed%2Fposts%2F4003374-切尔西-star-pedro-loving-life-at-stamford-bridge-after-this-summer-s-failed-move-to-barca%3Fpartner%3D353549%26show-author%3Dtrue%26show-date%3Dtrue%26show-reads -counter%3Dtrue%26show-title%3Dtrue%26utm_medium%3Dapi%26utm_source%3DLiveSoccer%2B-%2Blive%2Bscores&_branch_match_id=322721456099402785

我想做的是用branch_match_id(322721456099402785)重建原来的link(http://get.livesoccer.io/IuKk/0CRq5vArLx)。我如何使用来自 branch.io 的 Web SDK 执行此操作?

来自 Branch.io 的 Alex:branch_match_id 并非为此目的而设计。您想查看 init() 函数,它将 return 原始分支 link URL 加上其他有用的参数。 Read about it in our documentation here

根据@Alex Bauer 的回答,目前没有内置方法可以单独从 branch_march_id 获取原始分支 link,因此如果您无法加载init() 上的深度 link 信息在转换 link 时将原始 link 附加到查询参数,以便能够 restore/redirect 到原始参数。