Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何验证应用程序索引实现?_Android_Google Search Console_Firebase App Indexing_Android App Links - Fatal编程技术网

Android 如何验证应用程序索引实现?

Android 如何验证应用程序索引实现?,android,google-search-console,firebase-app-indexing,android-app-links,Android,Google Search Console,Firebase App Indexing,Android App Links,如前所述,我已经集成了应用程序索引。在我的实现中,我对公共内容进行了如下索引: Indexable pageToIndex = new Indexable.Builder() .setName("some title") .setUrl("some url") .build(); FirebaseAppIndex.getInstance().update(pageToIndex); Fire

如前所述,我已经集成了应用程序索引。在我的实现中,我对公共内容进行了如下索引:

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

 FirebaseAppIndex.getInstance().update(pageToIndex);
 FirebaseUserActions.getInstance().start(getAction());

 FirebaseUserActions.getInstance().end(getAction());
并将用户操作记录为开始和结束,如下所示:

 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实现已经过测试,运行良好,我可以在androidstudio中查看日志以及解释 但我在谷歌搜索中看不到与该应用程序相关的任何链接或结果(在应用程序安装之前或之后),也无法从中验证公共内容索引是否总是显示相同的错误

但无论如何,我已经在play store上发布了这个应用程序,不知道如何检查它的性能和错误。 我原以为它会显示在谷歌搜索控制台上,但在那个仪表板上我看不到任何和应用程序相关的东西


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

我发现只有一种方法可以测试应用程序索引:

  • 为FirebaseUserActions打开调试模式
  • adb shell setprop log.tag.FirebaseUserActions调试

  • 在日志中查找以下字符串:
  • 然后您可以在搜索结果中看到类似的内容:


    是的,我可以在编辑器中看到日志,但你可以在谷歌搜索中看到你的应用程序吗?是的,我添加了一个屏幕截图(我不知道),它在一段时间后才开始工作,但值得一提的是,它比我们以前实现的深度链接和链接验证更有效。让我们看看它是否也适用于我#fingercrossed:p