【发布时间】:2019-08-16 13:10:41
【问题描述】:
I have done all the steps from the blog
https://developer.android.com/studio/write/app-link-indexing。 之后,如果我单击链接,它将显示我的应用程序和 chrome 作为选择选项,如果我选择 chrome 而不是打开它正在播放商店的应用程序。 请帮我解决这个问题。
【问题讨论】:
I have done all the steps from the blog
https://developer.android.com/studio/write/app-link-indexing。 之后,如果我单击链接,它将显示我的应用程序和 chrome 作为选择选项,如果我选择 chrome 而不是打开它正在播放商店的应用程序。 请帮我解决这个问题。
【问题讨论】:
试试这个,这对我有用。将此添加到您的主要活动或您要使用此链接打开的活动中。
<intent-filter>
<action android:name="android.intent.action.VIEW"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>
<data
android:host="www.my.app.com"
android:path="launch"
android:scheme="http"/>
</intent-filter>
【讨论】: