我试图让基本的旅程应用程序横幅工作。没有深层次的链接(在这个阶段),当用户访问我们的网站时可以获得我们的iOS应用,或者在已经安装的情况下启动它。 问题在于横幅总是显示“get in app store”选项,即使应用程序已安装在设备上。branch.io:无法从javascript中检测已安装的应用程序
我看了Branch.io: javascript detect whether mobile app is installed和其他类似的问题没有任何帮助。
我已经运行通用链接验证器和ulv_script.sh,它没有显示任何问题。
在网页我做的:
branch.init('My_key_live_xxx', null, function(err, data) {
console.log('init...');
console.dir(data);
});
数据属性看起来调试时,就像如下:
{data: "", data_parsed: {}, has_app: null, identity: null, referring_identity: null, …}
在AppDelegate中的IOS-应用程序,我什么都不做,除了:
let branch: Branch = Branch.getInstance()
branch.initSession(launchOptions: launchOptions, andRegisterDeepLinkHandler: {params, error in
if error == nil {
// 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 ...
print("params: %@", params as? [String: AnyObject] ?? {})
}
})
我想这里不需要特殊的代码,直到我真的想链接到应用程序中的特定位置。现在我只想应用程序打开(或实际上由于需要打开按钮,显示检测到刚刚被检测......)
半功能,始终指向应用程式商店,版本是住在case有人想先看到问题:https://www.papereed.com/player
我想我错过了一些关于branch.io真正重要的东西,希望有人可以提供帮助。 谢谢!
谢谢你,强制复位步骤,你给出了!可能是这个组合和CTA按钮更新延迟。 – jola