gpt4 book ai didi

android - 如何验证 App Indexing 实现?

转载 作者:行者123 更新时间:2023-11-29 22:38:38 24 4
gpt4 key购买 nike

我已经按照说明集成了 App Indexing here .在我的实现中,我只是像这样索引了公共(public)内容:

 Indexable pageToIndex = new Indexable.Builder()
.setName("some title")
.setUrl("some url")
.build();

FirebaseAppIndex.getInstance().update(pageToIndex);

并将用户操作记录为开始和结束,如下所示:

 FirebaseUserActions.getInstance().start(getAction());

FirebaseUserActions.getInstance().end(getAction());

我的 App Link 实现已经过测试并且工作正常,我可以在 Android Studio 中看到日志以及解释 here.但我无法在谷歌搜索中看到任何与该应用程序相关的链接或结果(在应用程序安装之前或之后),也无法验证来自 here. 的公共(public)内容索引。它总是显示相同的错误。

enter image description here

但无论如何,我已经在 Play 商店发布了该应用程序,但不确定如何检查其性能和错误。我以为它会显示在 Google 搜索控制台中,但我在该仪表板中看不到与 App 相关的任何内容。

如果有人遇到类似的问题,请建议如何调试这些问题。

最佳答案

我只找到一种测试 App Indexing 的方法:

  1. 为 FirebaseUserActions 开启 Debug模式

adb shell setprop log.tag.FirebaseUserActions DEBUG

  1. 在日志中找到以下字符串:
03-19 12:00:56.659 1536-12580/? D/FirebaseUserActions:   url: *your_url*
03-19 12:00:56.659 1536-12580/? D/FirebaseUserActions: webUrl: *your_url*
03-19 12:00:56.659 1536-12580/? D/FirebaseUserActions: pkg: *your_pkg*

然后你可以在搜索结果中看到这样的东西:

enter image description here

关于android - 如何验证 App Indexing 实现?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59280430/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com