Trying to add Deep Linking my Android App

android, deep-linking

Solution

You must use multiple intent-filter tags:

  <activity
        android:name=".login.LoginActivity"
        android:screenOrientation="portrait">
        <intent-filter>
            <category android:name="android.intent.category.LAUNCHER" />
            <action android:name="android.intent.action.MAIN" />
        </intent-filter>
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE"/>
            <data android:scheme="https" />
            <data android:host="gizbo.ae" />
        </intent-filter>
    </activity> 

Problem

My app is working fine but whenever i add deep link code in my manifest my app lunching icon disappears this is my manifest file ``` <activity android:name=".login.LoginActivity" android:screenOrientation="portrait"> <intent-filter> <category android:name="android.intent.category.LAUNCHER" /> <action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE"/> <data android:scheme="https" /> <data android:host="gizbo.ae" /> </intent-filter> </activity> ``` When ever i add these three line for deep linking. App icon launching icon disappears from device. ``` <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE"/> <data android:scheme="https" /> <data android:host="gizbo.ae" /> ``` even i removed these two lines ``` <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE"/> ``` again same problem. i just want to make my app visible in Google search and i am following this link

Original source