Branch.io quicklink TEST 与 LIVE 有不同的数据
Branch.io quicklink TEST has different data from LIVE
为什么我在 AppDelegate
中的 didFinishLaunching
中通过此方法从 Branch.io 的快速链接中获得的数据不同于 TEST到LIVE环境?
// 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
}
似乎来自 TEST 环境中的快速链接的数据总是不完整并显示 non_branch_link
。我期待自己的 "data" 或 "parameter" vendorId
.
您能否确认在单击您的测试 link 时您正在使用您的测试分支密钥初始化 Branch SDK?
如果您使用实时密钥初始化 SDK 并单击测试 link,这是您将获得的典型响应。
为什么我在 AppDelegate
中的 didFinishLaunching
中通过此方法从 Branch.io 的快速链接中获得的数据不同于 TEST到LIVE环境?
// 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
}
似乎来自 TEST 环境中的快速链接的数据总是不完整并显示 non_branch_link
。我期待自己的 "data" 或 "parameter" vendorId
.
您能否确认在单击您的测试 link 时您正在使用您的测试分支密钥初始化 Branch SDK?
如果您使用实时密钥初始化 SDK 并单击测试 link,这是您将获得的典型响应。