android - 谷歌搜索控制台和应用索引 : URI unsupported

标签 android deep-linking android-app-indexing

我正在尝试在 Android 上实现应用索引。

我有一个 Intent 过滤器,如下:

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

我可以使用此命令从 adb 调用 Activity

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

因此,我无法使“Fetch as google”功能发挥作用。

enter image description here

我想知道:我如何才能理解“谷歌抓取”功能中有哪些功能不起作用? “URI unsupported”是一个毫无用处的痕迹。我该如何调试?

谢谢

最佳答案

“Fetch as Google”可以从 Google Play 上的当前版本或您在此处上传的 APK 中获取页面。

如果您使用的是本地上传,那么在显示提取结果后,您会在“本地上传 APK”列中看到一个“勾号”标记(检查下图)。

enter image description here

因为它不在您提供的图像中,所以是从您应用的 Google Play 版本中获取的。检查它是否在此版本中实现了应用索引。

关于android - 谷歌搜索控制台和应用索引 : URI unsupported,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35458775/

相关文章:

android - Galaxy Nexus 上的 Canvas Clip 功能错误

android - 错误 : Status{statusCode=DEVELOPER_ERROR, 分辨率 = null}

android - 如何在 Espresso 测试中等到 View 消失

iOS facebook 应用程序链接问题

android - 如何使用 AppsFlyer 测试 Deferred Deep Linking?

android - 即时应用程序在谷歌搜索中显示是否需要应用程序索引

android - 包管理器 : Not granting permission - Android M

java - 使用自定义建议提供程序时,android 中出现奇怪的 NullPointerException 错误

android - Google App Indexing 不适用于描述字段,但适用于标题字段

ios - 当应用程序被杀死时,React Native 深度链接不起作用