简体   繁体   English

为什么分支链接没有通过Android上的Facebook应用进行深层链接?

[英]Why are Branch links are not deep linking from Facebook app on Android?

I have integrated Branch in my Android app for deep linking and I'm having an issue. 我已经在我的Android应用程序中集成了Branch,以进行深层链接,但遇到了问题。 The issue is: 问题是:

On clicking Branch URL from Facebook app's older version (v3.3) works & deep link data is returned in referringParams, but on clicking same Branch URL from Facebook app's latest version (v30.0.0.19.17) deep link data is not returned in referringParams. 从Facebook应用程序的较早版本(v3.3)单击分支URL可以正常工作,并且在referringParams中返回深链接数据,但是在单击Facebook应用程序的最新版本(v30.0.0.19.17)中的相同分支URL时,referringParams中不会返回深度链接数据。

I have an iOS version of my Android app with Branch integrated and everything works fine on iOS. 我有集成了Branch的Android应用的iOS版本,并且在iOS上一切正常。

I also have a Facebook app for my Android & iOS apps. 我也有一个适用于Android和iOS应用程序的Facebook应用程序。

Facebook (around April 8th) updated the way their internal Webview handles URI schemes. Facebook(约4月8日)更新了其内部Webview处理URI方案的方式。 They actually stripped out Branch referral data because they implemented App Links correctly. 实际上,他们删除了分支引用数据,因为它们正确实现了应用链接。 You'll need to upgrade to Branch v 1.4.5 and implement a few extra things. 您需要升级到Branch v 1.4.5并实现一些其他功能。

From Branch's documentation, you'll see: 从Branch的文档中,您将看到:

Branch uses the Facebook App Links protocol to pass the deep links through to your app from Facebook. Branch使用Facebook App Links协议将深层链接从Facebook传递到您的应用程序。 Funny enough, if you also have a Facebook app configured in the developer portal and you choose 'Deep link from feed', Facebook ignores it's own protocol. 有趣的是,如果您还在开发人员门户中配置了Facebook应用,并且选择了“来自Feed的深层链接”,那么Facebook将忽略其自身的协议。 Make sure to uncheck this option in your Facebook app. 确保在您的Facebook应用程序中取消选中此选项。

Then, you'll need to add a permission inside your manifest, and hook into onNewIntent inside your Activity . 然后, 您需要在清单中添加权限,并在Activity中挂接到onNewIntent More information here: https://github.com/branchmetrics/branch-android-sdk#important-migration-to-v145 此处的更多信息: https : //github.com/branchmetrics/branch-android-sdk#important-migration-to-v145

Let me know if this helps! 让我知道这是否有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM