如何解决从 iOS 中的共享链接打开应用程序后,我无法获取分支安装参数
我正在与 Branch.io 共享链接,但是当我从我的 didFinishLaunchingWithOptions 中的链接安装应用程序时,没有获取 Branch 参数。
[[Branch getInstance] initSessionWithLaunchOptions:launchOptions isReferrable:YES andRegisterDeepLinkHandler:^(NSDictionary * _Nullable params,NSError * _Nullable 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(@"branch params.description: %@",params.description);
NSLog(@"branch params: %@",params);
} else {
NSLog(@"branch error: %@",error);
}
}];
branch params don't have the embedded properties in it,and also it cant detect it is installed from Link.
It always prints:
branch params: {
"+clicked_branch_link" = 0;
"+is_first_session" = 0;
}
这可能是什么原因,是否与ios版本有关?或分支sdk问题? 提前致谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。