我们已经使用Branch.io在我们的分支中实现了延迟的深度链接。这个流程在我们的Android构建中是正确的,但在iOS中却不正确。当单击iOS设备中的深度链接时,应用程序已正确安装,但深层链接的延迟内容部分无法工作。branch validate宝石都是绿色的。
有关守则是:
branch.subscribe(async ({ error, params, uri }) => {
if (error) {
console.error(`Error from Branch: ${error}`);
return;
}
if (params['+non_branch_link']) {
return;
}
if (!params['+clicked_branch_link']) {
return;
}
const deepLink = params.$deeplink_path;
if (deepLink) {
Linking.openURL(deepLink).catch((e) => { console.log('[Branch Error]', e); });
}
});发布于 2020-08-17 14:46:23
从来没有能够用现有的范例来解决这个问题。最后只是在if块中设置状态,如果设置了状态,则在不正确的屏幕上重定向用户。一定是某种种族状况。
[医]/¯\(ツ)
发布于 2020-09-10 12:08:07
您是否尝试过将initSessionTtl时间设置为10秒左右?
componentDidMount() {
branch.initSessionTtl = 10000;
branch.subscribe(({ error, params, uri }) => {
//Handle the deep link here
});
}https://stackoverflow.com/questions/63270567
复制相似问题