[英]Deep link is not opening the app from facebook post
I have added a deep link support in my app, and it works fine from gmail, messaging apps.我在我的应用程序中添加了深度链接支持,它在 gmail 消息应用程序中运行良好。
But from facebook, it opens the browser and not the app.但是从 facebook 开始,它打开的是浏览器而不是应用程序。
<activity
android:name="..MyActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="https"/>
<data android:host="mywebsite.com"/>
<data android:pathPrefix="/screen1"/>
<data android:pathPrefix="/screen2"/>
</intent-filter>
</activity>
Do i need to add something additional to make it work on facebook.我是否需要添加一些额外的东西才能使其在 facebook 上工作。
Best way to support opening your app from FB is to support FB Applinks - https://developers.facebook.com/docs/applinks/支持从 FB 打开应用程序的最佳方法是支持 FB Applinks - https://developers.facebook.com/docs/applinks/
This will give you the option to navigate directly into your app incase it's installed.这将使您可以选择直接导航到您的应用程序以防它已安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.