从 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;
}

我已经在 Project 中设置了所有关键信息和关联域。

enter image description here

这可能是什么原因,是否与ios版本有关?或分支sdk问题? 提前致谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)