Launch app if installed, or open Google Play with install referrer

I think this is your answer https://stackoverflow.com/a/28792160/5034920 Basically you must implement the intent filter like this:

<data android:scheme="https"
      android:host="www.foo.com"
      android:pathPrefix="/bar" />

and at the server side, create a redirect rule to google play. For example, https://www.foo.com/bar/BlahBlah will redirect to https://play.google.com/store/apps/details?id=com.bar.foo&referrer=BlahBlah.


I'm not sure 100% to have understood your question. I try to reformulate: you want your link to redirect to your app if installed without having the "open with" choice.

One solution, if you are developing for new Android M is to use App Link: here. But again, I'm not sure that is what you want.