在 implementation 之后,我能够通过 Android Studio 测试(工具 > Android > Google App Indexing Test)成功确认 Google Bot 可以索引我的应用程序。根据 Google Search Console,我的应用程序的 200 多个页面已被编入索引。但是这里有问题
- Google 抓取总是失败
- Firebase 应用 indexing test失败。
如果已安装该应用,则点击 Google 搜索结果将打开该应用。但如果应用程序未安装,它会转到网站(即搜索结果中没有安装按钮)。
Firebase 的其他所有功能都有效:应用邀请、深度链接、分析。
所以我想问,有没有人真正让 Firebase App Indexing 工作?如果是这样,那么真的吗?
我的应用是一个带有 Spinner 的 Activity,用户通过从 Spinner 中选择一个项目来选择内容。当用户做出选择时,会填充一个 fragment 。当然要索引,我在填充 fragment 时调用 AppIndex.AppIndexApi.start(client, getAction())
并调用 AppIndex.AppIndexApi.end(client, getAction())
当用户选择不同的内容时……并重复 start-end。
我也没有使用 Digital Asset Links
,而是通过 Search Console
将我的应用与我的网站相关联。
最佳答案
几件事:
Fetch as Google always fails. Firebase app indexing test fails.
您可能需要检查您网站的 robots.txt,以不阻止 Google 漫游器抓取您的 API。
If the app is installed, then clicking on a Google Search result will open the app. But if the app is not installed, it goes to the website (i.e. no install button in search results).
要实现如下截图所示的应用安装流程,您实际上需要实现Web App Manifest在您的网站上。
(来源:google.com)
关于android - 有没有人让 Firebase 应用索引工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38724855/