【问题标题】:Apps Link android is not opening to my app when i select browser from the dialog even app is installed当我从对话框中选择浏览器时,即使安装了应用程序,应用程序链接 android 也没有打开到我的应用程序
【发布时间】: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 而不是打开它正在播放商店的应用程序。 请帮我解决这个问题。

【问题讨论】:

    标签: android android-app-links


    【解决方案1】:

    试试这个,这对我有用。将此添加到您的主要活动或您要使用此链接打开的活动中。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-09
      • 2013-07-04
      • 2019-04-05
      • 2021-02-25
      • 1970-01-01
      • 2014-08-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多