我正在尝试使用深层链接在特定页面上打开我的应用程序,但它一直在打开起始页
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>
我觉得可能是scheme、host、pathPrefix不正确的问题
应用正在检查的URL如下:
完整 URL:
https://login.pixelpin.co.uk/SignIn/ResetResponse.aspx?code=OAWIBGOAWO893745OBFAIN&user=4389246
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.
<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>
我觉得可能是scheme、host、pathPrefix不正确的问题
应用正在检查的URL如下:
完整 URL:
https://login.pixelpin.co.uk/SignIn/ResetResponse.aspx?code=OAWIBGOAWO893745OBFAIN&user=4389246
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.