Hello I am developing an app dealing with products and I would like to improve user experience using Android assistant.
I read Google's documentation and try first using the code below:
@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);
}
The code is called but nothing added to normal experience of Google assistant crawling the current view. I tried also using product schema (schema.org) (with @product, @brand, @review ...) because I thought the problem was the json object gave no result on a google search. But nothing appeared with this new json.
Am I wrong when I think the problem lies on the fact that the json is inconclusive on Google search or I forgot to do semething more?
Thanks