I am trying to implement Firebase App Indexing, while the task to update the indexable is showing success and the index is also shown in the In Apps tab after searching in Google App. From what I understand, the index should also show up in the Auto Complete Suggestions when searching in the Google App but its not shown. I am following the tutorial from here. Following is the code snippet I am using to index the content:
Indexable menuItemToIndex = Indexables.noteDigitalDocumentBuilder()
.setName(title)
.setText(text)
.setUrl(link)
.build();
Task<Void> task = FirebaseAppIndex.getInstance().update(menuItemToIndex);
task.addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
Log.d(TAG, "App index updated: " + title);
}
});
Also the version of the Firebase App Indexing library I'm using is
compile 'com.google.firebase:firebase-appindexing:10.0.1'
Is there anything I'm missing?
I am testing on Nexus 6P running on Stock 7.1.1
and Google App version 6.9.36.21.arm64
.