androidxamaringoogle-searchgoogle-search-apiandroid-app-indexing

How should I index content of my Android application


I'm trying to implement Google App Indexing in one of my application. Content in my applications is divided into chapters:

Each chapter is presented as one view, but there are a few sections in each of those views, for example Linear motion contains:

I was able to index my data only by chapter title, but I'd like also to index all section titles. I tried to index all sections for the same app uri, but it looks like than only last entry is used.

Sample in C# (I'm using Xamarin):

foreach (var item in data)
        {
            var viewAction = Action.NewAction(Action.TypeView, item, baseAppUri);
            AppIndex.AppIndexApi.Start(client, viewAction);
        }

Is it possible to index few items to point to the same uri, or maybe I should stick with indexing chapter title only?


Solution

  • There is a question asked in Webmaster Central Help Forum, where it explains you can have multiple Web URLs with the same App URI.

    Here is the link to the question

    You can also find more info at https://developers.google.com/app-indexing/android/publish where you need to report an activity in the API, but it should only do once per app URI visit.

    Cheers