0
activity
        android:name=".activity.rechargetab.RechargeActivity">
        <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="mobileleb"
                android:host="recharge/checkout/status" />
        </intent-filter>
    </activity>

When I try mobileleb://recharge/checkout/status from the browser it searches google.Its not working. It does not start RechargeActivity.

Sylwester
  • 47,942
  • 4
  • 47
  • 79
user3278732
  • 1,694
  • 10
  • 31
  • 67
  • Check the accepted answer of this [link](https://stackoverflow.com/questions/24808777/deep-linking-intent-does-not-work). This worked for me. – Mayank Pandya Jul 25 '17 at 10:55

1 Answers1

0

add android:autoVerify="true" to intent-filter and specify scheme="http" or "https" or both

<activity
            android:name=".activity.rechargetab.RechargeActivity">
            <intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http" android:host="mobileleb" />
                <data android:pathPattern ="/recharge/checkout/status" />

            </intent-filter>
        </activity>
Yessine Mahdouani
  • 1,225
  • 12
  • 24