1

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

我有一个意图过滤器,如下:

            <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 调用活动

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

因此,我无法使“Fetch as google”功能正常工作。

在此处输入图像描述

我想知道:我怎么能理解“fetch as google”功能中什么不起作用?“不支持URI”是一个非常无用的跟踪。我该如何调试呢?

谢谢

4

1 回答 1

2

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

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

在此处输入图像描述

由于它不在您提供的图像中,因此提取是从您的应用程序的 Google Play 版本进行的。检查它是否在此版本中实现了应用索引。

于 2016-02-17T17:09:25.113 回答