你好,我正在开发一个处理产品的应用程序,我想使用Android助手来提高用户体验。
我阅读了Google的文档,并首先尝试使用以下代码:
@Override
public void onProvideAssistContent(AssistContent assistContent) {
super.onProvideAssistContent(assistContent);
String structuredJson = new JSONObject()
.put("@type", "MusicRecording")
.put("@id", "https://example.com/music/recording")
.put("name", "Album Title")
.toString();
assistContent.setStructuredData(structuredJson);
}代码被调用,但没有增加谷歌助手爬行当前视图的正常体验。我还尝试使用产品模式(schema.org) (带有@ product,@brand,@review ...)因为我认为问题出在json对象在google搜索上没有给出结果。但是这个新的json什么也没有出现。
当我认为问题在于json在Google搜索中没有定论,或者我忘记做更多的事情时,我错了吗?
谢谢
发布于 2017-12-21 15:49:40
关于Google Assistant,因为它是一个Assistant,所以在向用户建议结果之前,它会做更多的计算。这意味着与你分享的内容,它将为谷歌助手学习和谷歌助手做一些事情,只是谷歌知道,是不是一个明确的概念,像if else条件。此外,你可以在this上关注评论,我认为这会有所帮助。
https://stackoverflow.com/questions/40131372
复制相似问题