airbnb / DeepLinkDispatch

A simple, annotation-based library for making deep link handling better on Android
http://nerds.airbnb.com/deeplinkdispatch/
4.38k stars 407 forks source link

Are dynamic hostnames based on a pattern supported? #210

Open ghost opened 6 years ago

ghost commented 6 years ago

Is there support for a case like this :

@DeepLink("http://{name}.example.com/deepLink")

Looking for variable host names here.

andretietz commented 6 years ago

I am also searching for a solution like this. My multiflavored app needs a different scheme as well as a different hostname.

TinasheMzondiwa commented 6 years ago

Any solution to this yet?

JeckChou commented 6 years ago

my solution is like below, wish can help you

@DeepLinkSpec(prefix = { "http://hostname1.example.com/xxx", "https://hostname2.example.com/xxx", ...... }) public @interface WebDeepLink { String[] value(); }

==== useage === @WebDeepLink({"/path1/path2/{p}"}) public deepLinkHandler(context,bundle){ //do something }

marcosalis commented 6 years ago

I have the same requirement, but the hostname is also known at runtime, depending on our app's customer. Is there a way to ignore the hostname at all?

theo744 commented 5 years ago

Hi, Do we have news on this matter ? I'm also interested in the possibility of ignoring hostname or part of the hostname (such as subdomain). Best, Theo