architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

Deep link base path

Open vmosconecds opened this issue 5 years ago • 1 comments

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 🙏

vmosconecds avatar Nov 13 '20 14:11 vmosconecds

Any updates on this? How can I skip adding <data android:path="/" /> in the manifest? @vmosconecds Maybe you found another solution?

iTruff avatar Mar 24 '21 10:03 iTruff