Deeplink deeplinks on Android


How can you implement a system of Deeplink style the tinder app.

That is, in the share with ... option, a url style

is added

The one who receives the message in whatsapp, telegram etc ... if you click on the link, two things can happen:

  • If the user does not have the app, he opens the google play with the app.

  • If the user has the app, it opens, the link is processed and placed on the screen with the information.

I understand that the android's depplink system, if the app is not installed, opens the link with the web browser. If you have it installed, delegate your request to it, avoiding the opening in the browser.

Things I have done:

Pattern route link: link

  • Send message and link to share with Share This towards whatsapp, telegram, notes etc ...

I'm missing:

  • Process the deeplink from the app if the user has it installed.
  • How to know which route to load in the app? I suppose I should add something in the url to have a numeric reference indexed in the route database in the app.
asked by Webserveis 04.11.2016 в 11:16

1 answer


In the "onCreate" or "onStart" methods of the activity you can do this to retrieve the url.

Intent intent = getIntent();
Uri data = intent.getData();

In data you will have the url that activated the application and there you can add some id or other parameter if necessary.

To know what activity the app has to load, you can take a look at the deep link documentation explains how to create filters so that a url loads one or another activity.

answered by 08.12.2016 в 21:12