我已经开发了一个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
有两种方法可以深度链接到Android上的应用程序:“应用程序链接”和“ URI方案”。您提供的配置用于应用链接,Android上的许多应用仍不支持该链接。为了链接到此类应用程序,您必须使用URI方案。为了确保获得最广泛的支持,您应该将您的应用程序配置为同时使用应用程序链接和URI方案。
这是一个示例意图过滤器,用于通过URI方案链接到具有URI方案“ branchtest”的应用程序:
<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方案的Branch演示应用程序中获取了此示例,网址为:https : //github.com/BranchMetrics/android-branch-deep-linking/blob/master/Branch-SDK-TestBed/AndroidManifest。 XML文件
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句