Callum
Callum

Reputation: 149

I'm trying to open my app on a specific page using deeplinking but it keeps opening the start page

<activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <data android:scheme="deeplinkingtest"/>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity android:name=".resetresponse">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <data android:scheme="https"
                    android:host="callum.pixelpin.co.uk"
                    android:pathPrefix="/ResetRequest" />
                <data android:scheme="http"
                    android:host="pixelpin.co.uk"
                    android:pathPrefix="/SignIn/ResetRequest" />
                <data android:scheme="deeplinkingtest"
                    android:host="resetresponse"/>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

I think it may have to do with the scheme, host and pathPrefix not being correct.

The URL in which the app is checking is as follows:

https://login.pixelpin.co.uk/SignIn/ResetResponse.aspx

Full URL:

https://login.pixelpin.co.uk/SignIn/ResetResponse.aspx?code=OAWIBGOAWO893745OBFAIN&user=4389246

Upvotes: 0

Views: 887

Answers (1)

Krunal Patel
Krunal Patel

Reputation: 61

    Deeplink class set Like below code and must be remove other All scheme .


    <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.DEFAULT" />
                    <action android:name="android.intent.action.VIEW" />
                    <category android:name="android.intent.category.BROWSABLE" />

                    <data android:scheme="your scheme" />
                </intent-filter>

Include the BROWSABLE category. The BROWSABLE category is required in order for the intent filter to be accessible from a web browser. Without it, clicking a link in a browser cannot resolve to your app. The DEFAULT category is optional, but recommended. Without this category, the activity can be started only with an explicit intent, using your app component name. 

Upvotes: 1

Related Questions