简体   繁体   English

Google搜索控制台和应用索引:不支持URI

[英]Google search console and app indexing: URI unsupported

I'm trying to implement app indexing on Android. 我正在尝试在Android上实现应用索引。

I've got an intent-filter, the following: 我有一个意图过滤器,如下:

            <intent-filter android:label="@string/app_name">
            <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="www.hotelsclick.com" />
            <data android:scheme="https"
                android:host="www.hotelsclick.com" />
        </intent-filter>

and I can call the activity from adb with this command 我可以使用此命令从adb调用活动

adb shell am start -a android.intent.action.VIEW -d "https://www.hotelsclick.com?hotel_id=135738"

Thus, I cannot manage to make the "Fetch as google" feature work. 因此,我无法使“以Google身份获取”功能正常工作。

在此处输入图片说明

I was wondering: how can I understand what's not working in the "fetch as google" feature? 我想知道:我如何理解“以Google身份获取”功能中不起作用的内容? "URI unsupported" is quite a useless trace. “不支持URI”是相当无用的跟踪。 How can I debug this? 我该如何调试?

Thank you 谢谢

"Fetch as Google" can fetch a page from either the current version on Google Play or from an APK that you upload here. “以Google身份获取”可以从Google Play上的当前版本或您在此处上传的APK中获取页面。

If you are using a local upload, then you will see a "tick" mark in the "Local Upload APK" column after the fetch results are shown (check image below). 如果您使用的是本地上传,则在显示提取结果后,您会在“本地上传APK”列中看到“打勾”标记(请参见下面的检查图)。

在此处输入图片说明

Since, it is not there in the image you provided, the fetch is happening from the Google Play version of your app. 由于您提供的图片中没有该图片,因此正在从您的应用的Google Play版本中进行抓取。 Check if it has app indexing implemented in this version. 检查它是否在此版本中实现了应用索引编制。

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

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