Branch.io quicklink TEST与LIVE

时间:2019-01-25 14:37:24

标签: ios branch.io

为什么我在didFinishLaunching的{​​{1}}中从Branch.io的快速链接通过此方法获取的数据从 TEST 变为 LIVE 环境?

AppDelegate

测试:

// Branch.io
let branch: Branch = Branch.getInstance()
branch.initSession(launchOptions: launchOptions, andRegisterDeepLinkHandler: { params, error in
    if error == nil, let params = params {
        let jsonObj = JSON(params)
        self.handleDeeplink(jsonObj)
    }
})

实时:

{
  "+non_branch_link" : "https:\/\/project-name-alternate.test-app.link\/5FACVDbDLT?__branch_flow_type=viewapp&__branch_flow_id=617351215055680480&__branch_mobile_deepview_type=1",
  "+clicked_branch_link" : false,
  "+is_first_session" : false
}

测试环境中的快捷链接中的数据似乎总是不完整,并显示{ "$marketing_title" : "boomboom6380", "vendorId" : "6380", "+match_guaranteed" : true, "~feature" : "marketing", "~channel" : "Email", "~id" : 598329481362959444, "+is_first_session" : false, "+click_timestamp" : 1548426747, "~creation_source" : 1, "$og_description" : "My OG Description", "~marketing" : true, "~campaign" : "Promo", "~referring_link" : "https:\/\/project-name-alternate.app.link\/KMX1mdcwmS?__branch_flow_type=viewapp&__branch_flow_id=617353403347935401&__branch_mobile_deepview_type=1", "+clicked_branch_link" : true, "$one_time_use" : false } 。我期待自己的“数据”或“参数” non_branch_link

1 个答案:

答案 0 :(得分:1)

您可以确认单击测试链接时是否正在使用测试分支密钥初始化Branch SDK?

如果使用实时键初始化SDK并单击测试链接,这是您将获得的典型响应。