Architecture-components-samples: Deep link with multiple query parameters

Created on 14 Mar 2019  路  2Comments  路  Source: android/architecture-components-samples

Env: navigation 2.0.0-rc02
In a navigation graph, if I register deep link like this

<deepLink app:uri="scheme://path/arq?arg={arg}" />

It redirects me to a targetted fragment
but if I declare multiple args like this

<deepLink app:uri="scheme://path/arq?arg1={arg1}&amp;arg2={arg2}" />

It is handled by activity's onNewIntent(). Expected behavior that it redirects me also to desired fragment.

P.S. I can read all the values from intent.data but if I am calling

findNavController(R.id.hostFragment).handleDeepLink(intent)

it still says that there are no deep links

Most helpful comment

It's the issue with the adb command: add \ before &:
https://stackoverflow.com/a/35645448/727768

All 2 comments

It's the issue with the adb command: add \ before &:
https://stackoverflow.com/a/35645448/727768

This doesn't seem to be an issue with the samples. Please file an issue against Navigation on the issue tracker.

Was this page helpful?
0 / 5 - 0 ratings