Is it possible to use a string constant in the deep link URI?
Currently I have a few links, which lead to duplication of the host part:
<deepLink app:uri="www.host.com/a" />
<deepLink app:uri="www.host.com/b" />
<deepLink app:uri="www.host.com/c" />
<deepLink app:uri="www.host.com/d" />
I'm looking therefore for a way to extract somehow www.host.com
.
I've been naively trying extracting it to strings.xml
:
<string name="host">www.host.com</string>
and then:
<deepLink app:uri="{@string/host}/details/{id}" />
But this does not work (Improper use of wildcards and/or placeholders in deeplink URI host
compilation error)