Search code examples
androidandroid-app-indexing

How can I add App Indexing concept in my Application?


Greetings of the day !! I have an Application which I am going to deploy on Google Play. Recently I came across App Indexing. I have a query regarding this. My Application is purely native and there is no any Web-View used yes all the data are coming through dynamically fro web service. My Question is Can I add app indexing code into my Application Main Launcher class ? This is my Manifest. Where should i paste app indexing code ? please guide me.

<application
    android:name=".MyApplication"
    android:allowBackup="true"
    android:allowClearUserData="true"
    android:enabled="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.NoTitleBar" >
    <receiver
        android:name=".MyBroadcastReceiver"
        android:permission="com.google.android.c2dm.permission.SEND" >
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            <action android:name="com.google.android.c2dm.intent.REGISTRATION" />

            <category android:name="com.MyKidzDay" />
        </intent-filter>
    </receiver>

    <service android:name=".MyIntentService" />

    <activity
        android:name=".SplashScreen"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

Solution

  • App Indexing currently requires that the content on the app has a corresponding web page which is indexed by Google.

    As mentioned by you, since there is no corresponding website for your app content, the regular app-indexing procedure won't work for you. You will have to first contact Google and let them know about your "app-only" content.

    More information here - https://developers.google.com/app-indexing/app-only