I have added features of App indexing and deep linking for my Game app as a plugin .. deep linking is working properly , the feature of app indexing i.e Autocomplete is not working,.. as ,
PendingResult<Status> result=AppIndex.AppIndexApi.end(mClient,getAction());
result.setResultCallback(new ResultCallback<Status>()
Above Code: Call back records of the visited page;
And shows in play store whenever trying to search similar to the page.
But it is not showing me Autocomplete ..
In the manifest, the activity that needs to be deeplinked(openable by a URI defined by you) should have the following structure :
In your activity, define a URI which uniquely identifies that activity. It should be in the following format :
//android-app://<package_name>/<scheme>/[host_path])
.For example :
Also, you'll need to use an instance of the GoogleApiClient.
In the onCreate function, initialize the client :
Then, wherever appropriate in the code, connect to the client and create an Action which will be passed to the AppIndex API.
For example :
Finally, disconnect the GoogleApiClient instance in the onStop Method :
I would suggest that you go through the following tutorial on Google CodeLabs for AppIndexing and DeepLinking. You would require some understanding of how deep linking works before you can implement app indexing properly.
https://codelabs.developers.google.com/codelabs/app-indexing/#0