architecture-components-samples
architecture-components-samples copied to clipboard
Deep link base path
We have an URI that has this format com.example://changeForgottenPassword?token=XXXX.
The definition for the deep link is <deepLink app:uri="com.example://changeForgottenPassword" />.
After building the app the intent filter is added into the AndroidManifest and I see that there is a tag <data android:path="/" />that is being added.
That force to add / into the URI com.example://changeForgottenPassword/?token=XXXX
For targeting the desire behavior we end up adding the / into the URI ./adb shell am start -W -a android.intent.action.VIEW -d "com.example://changeForgottenPassword/?token=asdatoken" com.example.stage
Is it needed to define a path after host?
scheme = com.example host = changeForgottenPassword past = something
Example: <deepLink app:uri="com.example://changeForgottenPassword/something" />
Libraries:
androidx.navigation:navigation-fragment-ktx:2.3.0
androidx.navigation:navigation-ui-ktx:2.3.0
Thanks 🙏
Any updates on this? How can I skip adding <data android:path="/" /> in the manifest?
@vmosconecds Maybe you found another solution?