我已经开发了一个android应用程序,我正在使用深度链接打开这个应用程序,它在除三星手机之外的所有其他设备上都能完美地工作,当我试图通过三星默认Messenger打开它时,它会将我重定向到Google play商店。请给我一个解决方案,找出我遗漏了什么。
<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:exported="true"
android:host="frr.com"
android:scheme="https" />
<data
android:exported="true"
android:host="frr.com"
android:scheme="http" />
<data
android:exported="true"
android:host="www.frr.com"
android:scheme="https" />
<data
android:exported="true"
android:host="www.frr.com"
android:scheme="http" />
</intent-filter>这是链接- https://frr.com/open.php
发布于 2017-02-13 00:11:31
有两种方式深度链接到Android上的应用程序:应用程序链接和URI方案。您提供的配置是针对App链接的,Android上的许多应用程序仍然不支持。为了链接出这样的应用程序,您必须使用URI方案。为了确保最广泛的支持,您应该将您的应用程序配置为同时使用app链接和URI方案。
以下是一个通过URI方案链接到具有URI方案“分支测试”的应用程序的示例意图过滤器:
<intent-filter>
<data android:scheme="branchtest"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>我从一个同时支持应用程序链接和URI方案的分支演示应用程序中抓取了这个示例,如下所示:https://github.com/BranchMetrics/android-branch-deep-linking/blob/master/Branch-SDK-TestBed/AndroidManifest.xml
https://stackoverflow.com/questions/42155334
复制相似问题