How to use wildcards in uriPattern for jetpack compose navigation deep links?

23 Views Asked by At

I am trying to implement deep links in my android app using Compose Navigation. I am following the official documentation but got stuck at one problem. I want my composable to intercept all urls with the prefix https://www.example.com i.e. I want that composable to load for https://www.example.com/abc, https://www.example.com/a/b/c, etc.

What should I pass in uriPattern?

When I use just https://www.example.com, the composable only opens for https://www.example.com and not for https://www.example.com/abc or any other link. I tried using some wildcard like https://www.example.com/** but that doesn't work.

0

There are 0 best solutions below