【问题标题】:Deep link is not opening the app from facebook post深层链接未从 Facebook 帖子打开应用程序
【发布时间】:2022-01-08 09:05:35
【问题描述】:

我在我的应用中添加了深度链接支持,它在 gmail、消息传递应用中运行良好。

但从 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>

我是否需要添加其他内容才能使其在 facebook 上运行。

【问题讨论】:

    标签: android deep-linking android-deep-link


    【解决方案1】:

    支持从 FB 打开应用的最佳方式是支持 FB Applinks - https://developers.facebook.com/docs/applinks/

    这将使您可以选择直接导航到您的应用(如果已安装)。

    【讨论】:

      猜你喜欢
      • 2017-11-16
      • 2016-05-10
      • 1970-01-01
      • 1970-01-01
      • 2018-02-12
      • 1970-01-01
      • 2016-10-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多