Android deep link goes to website and not install of APK

Asked on January 16, 2017 in Technical.

I just started using Branch.io.  I’m currently testing the functionality on Android.  The problem is I can’t get the app to install if it isn’t installed.  Here’s what I’m seeing:

App Installed:

  • Click on link
  • It loads the browser for an instance (should it do this?)
  • It then loads the app

App NOT installed:

  • Click on link
  • Goes to default website and stays there.
  • It DOESN’T seem to attempt to load the app from the defined URL

Additional Info:

  • The app isn’t in Google Play yet so I configured it to load the APK from a defined URL.  At least, that’s what I think I did.

Any ideas?

Mobility Initiative — Developer
2 Answer(s)
Answered on January 16, 2017.

I got it to work, mostly.  It does download the APK but it still does the redirect if the app is already installed.  Shouldn’t it just load the app if it’s already installed instead of going to the browser first and then re-directing?

Mobility Initiative — Developer
Answered on January 17, 2017.

Hey – thanks for posting the question. Glad that you were able to get the APK download to work.

Redirect to the browser is an expected behavior since this is where Branch’s routing logic comes into picture where the app open intent is constructed. However, on Android 6+, you can use Android App Links to open the app directly if installed i.e skipping the redirect to the browser. We have documentation on this here: https://dev.branch.io/getting-started/universal-app-links/overview/

Let me know if you have more questions. Thanks!

Developer