简体   繁体   English

从Chrome应用搜索时,Android应用索引无法正常工作

[英]Android app indexing not working when searched from chrome app

I have integrated app indexing for my android app so that whenever user search from mobile google, list of site will be listed out,on clicking my site it will take to my android app instead of webpage. 我为我的android应用程序集成了应用程序索引,以便每当用户从移动google搜索时,网站列表都会列出,单击我的网站后,它将带到我的android应用程序而不是网页。 This works fine when i search from google search app, whereas the same is not working when i search my chrome browser app. 当我从Google搜索应用程序搜索时,此方法工作正常,而当我搜索Chrome浏览器应用程序时,该方法不起作用。

Have implemented using this guide http://googlewebmastercentral.blogspot.in/2014/06/android-app-indexing-is-now-open-for.html 已使用本指南http://googlewebmastercentral.blogspot.in/2014/06/android-app-indexing-is-now-open-for.html实施

This was the intent filter i have used in my manifest 这是我在清单中使用的意图过滤器

<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="http"
                       android:host="mysitedomain"/>
</intent-filter> 

I have also tried with <category android:name="android.intent.category.APP_BROWSER" /> I have done site verify from developer console. 我也尝试使用<category android:name="android.intent.category.APP_BROWSER" />从开发人员控制台进行网站验证。

Do i am missing any configuration settings Any suggestion would be helpful. 我是否缺少任何配置设置任何建议都会有所帮助。

Thanks. 谢谢。

Whenever we need an app to be called by clicking link from chrome browser, definitely that app should include pathPrefix in data tag of intent filter 每当我们需要通过单击chrome浏览器中的链接来调用某个应用程序时,肯定该应用程序应在意图过滤器的数据标签中包含pathPrefix

in my case for app indexing search from chrome browser i need to include this. 就我而言,从chrome浏览器进行应用索引搜索时,我需要包括此内容。

<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="http"
                       android:host="mysitedomain"
                       android:pathPrefix="/" />
</intent-filter>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM