Google App indexing API deprication

219 views Asked by At

Hi I want to implement google app indexing for android. But the documentation is confusing. Months ago I implemented local autocompletion using the following guide: https://codelabs.developers.google.com/codelabs/app-indexing/#0

Now I want to enable google search feature, the doc claims that google systems will crawl my manifest file and based on intent-filters will do the indexing, here is a fragment of that doc:

https://developers.google.com/app-indexing/android/publish#add-app-indexing-api-calls

So I'm confused, what is the difference between this two links? Should I have both of them in my code or the previous link is just the old version of doing things ?

1

There are 1 answers

7
Sasank Mukkamala On BEST ANSWER

There is no difference in both the guides you mentioned. Except that in the 1st guide, you are capturing the result of AppIndex.AppIndexApi.start and writing it to log. And in the 2nd one, you are not.

Compare the onStart() method in both of them. You are first connecting to GoogleApi client. Then calling the start method of AppIndexApi.