我正在尝试在 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”功能发挥作用。
我想知道:我如何才能理解“谷歌抓取”功能中有哪些功能不起作用? “URI unsupported”是一个毫无用处的痕迹。我该如何调试?
谢谢
最佳答案
“Fetch as Google”可以从 Google Play 上的当前版本或您在此处上传的 APK 中获取页面。
如果您使用的是本地上传,那么在显示提取结果后,您会在“本地上传 APK”列中看到一个“勾号”标记(检查下图)。
因为它不在您提供的图像中,所以是从您应用的 Google Play 版本中获取的。检查它是否在此版本中实现了应用索引。
关于android - 谷歌搜索控制台和应用索引 : URI unsupported,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35458775/