如何在仪表板中获取数据设置。 我在"深层链接数据(高级)"中添加了一个键和一个值。 在Branch.io仪表板中
登录/菜单:营销/操作/编辑
我在objective-c中有这个:
Branch *branch = [Branch getTestInstance];
[branch setDebug];
NSDictionary *params = [branch getLatestReferringParams];
我正在"测试"仪表板。
答案 0 :(得分:1)
亚历克斯与分公司在这里:
$
符号仅用于指示保留的系统控制参数(您可以找到这些参数的列表here)。由于您设置了自定义数据密钥,因此您在示例中使用的key : value
对实际上只需要myplan : 10
。
你的会话初始化片段也有点奇怪。你介意分享你找到的地方吗?我们可能会在某个地方找到一些过时的文件......
Branch *branch = [Branch getTestInstance];
[branch setDebug];
[branch initSessionWithLaunchOptions:launchOptions andRegisterDeepLinkHandler:^(NSDictionary *params, NSError *error) {
if (!error) {
// params are the deep linked params associated with the link that the user clicked -> was re-directed to this app
// params will be empty if no data found
// ... insert custom logic here ...
NSLog(@"params: %@", params.description);
}
}];