Supporting existing deep link routes

Asked on March 22, 2017 in Technical.

Hi-

My app (Android) has some existing parameter-based deep link routing.

In the Branch docs, I read the following.

“If your app already supports deep linking using URI paths, you can populate the $deeplink_path, $ios_deeplink_path or $android_deeplink_path link parameters with the URI path of the content to be displayed within the app. When the Branch SDK receives a link containing one of these parameters it will automatically load the specified URI path.

In your app’s Manifest, add this meta-data key to the definition of the Activity you want to show when a link to content is opened.

<meta-data android:name="io.branch.sdk.auto_link_path" 
android:value="custom/path/*,another/path/" />

What exactly would this auto_link_path look like for these real world examples:.

“myapp/#/news/*”
“myapp/login”
“myapp/#”

 

Thanks!

Black Pixel — Developer
1 Answer(s)
Answered on March 31, 2017.

There are multiple ways to do this.

You can setup auto_link_path to be myapp/* . However, a more scalable method to do this would be create a custom method for setting up deep link routing as documented here: https://dev.branch.io/getting-started/deep-link-routing/guide/android/#building-a-custom-deep-link-routing-method

If you have any technical queries, please don’t hesitate to reach out to our integrations team here. Thanks!

Developer