Android Firebase App Indexing Personal Content not working on tablet
I have implemented Android Firebase Apping Personaling app in my app. I index articles for easy search from Google Search Assistant. It works fine with phones [tested on Samsung S7 Edge and S8] but doesn't display results in any tables [Nexus 7 (5.0.1), Samsung Tab S2 (7.0)].
Also entries are listed in Settings -> Google Settings -> Indexing FireBase Apps under the app. correct in both phones and tablets.
url: "android-app//custom-package/....."
type: "DigitalDocument"
nane: ["FC Barcelona..."]
metadata:{
worksoffline:false
score:0
}
Screenshots: -
Search Works with phones:
Search result doesn't work in Tablet:
Below is the code where I store articles as personal content in the System.
ArrayList<Indexable> indexableArticles = new ArrayList<>();
for (IndexEntry e : indexFeed) {
Indexable articleToIndex = Indexables.digitalDocumentBuilder()
.setName(e.getTitle())
.setUrl(e.getUrl())
.build();
indexableArticles.add(articleToIndex);
}
if (indexableArticles.size() > 0) {
Indexable[] indexedArr = new Indexable[indexableArticles.size()];
indexedArr = indexableArticles.toArray(indexedArr);
// batch insert indexable articles into index
FirebaseAppIndex.getInstance().update(indexedArr);
}
Also I am using com.google.firebase library: firebase-appindexing: 10.2.6
Can't figure out what the problem is in Tablet even after it indexes articles. Glad to help, you will help. Thank.
source to share
No one has answered this question yet
Check out similar questions: