Branch如何构造最终隐藏在* .app.link URL中的URL?

时间:2019-01-08 20:28:09

标签: branch.io

我正在创建一个分支链接-只能使用该应用程序的实时版本进行测试-

Observable
  .pipe(
     tap(() => { /* execute only when I get the first emitted value */ })
  )
  .subscribe(() => {
     // .....
  })

我认为这会创建一个链接,例如 let routeString = "create" let buo = BranchUniversalObject(canonicalIdentifier: PFUser.current()!.objectId!) let linkProperties = BranchLinkProperties() linkProperties.feature = "createItem" linkProperties.addControlParam("$deeplink_path", withValue: routeString) linkProperties.addControlParam("referrer", withValue: "someApp")

是正确的还是linkProperties构造为其他形状?谢谢

1 个答案:

答案 0 :(得分:0)

来自Branch的Jackie。根据需要通过SDK创建分支链接,将生成如下所示的短链接:https:myApp.app.link/fbofj2(随机字符)。该链接包含您在创建过程中设置的所有数据和参数。

另一方面,长链接将链接属性附加到链接URL本身。可以像这样在您的一端动态创建:https:myApp.app.link/?foo = bar。

要了解更多信息,请随时参考我们有关链接生成的文档:https://docs.branch.io/pages/links/integrate/#short-links