Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Deep Linking Installs

Google recently implemented a feature into Google Search that allows a user to install your app on the fly if the result can be opened in your app.

Is there any way to detect if this is how your app was opened? Installed and deep linked from a Google Search?

like image 759
Kyle Jahnke Avatar asked Apr 28 '15 13:04

Kyle Jahnke


People also ask

What is deep linking Android example?

A deep link is a URL link that is generated, when anyone clicks on that link our app will be open with a specific activity or a screen. Using this URL we can send a message to our app with parameters. In WhatsApp, we can generate a deep link to send a message to a phone number with some message in it.

How do you implement app deep linking?

To use the tool, log in to your Adjust dashboard and open the Menu, where you'll see the 'Deeplink Generator' as an option. Click to open, and you'll find a page to input the information required to create your deep link. Then simply copy and paste into whichever campaign you've set up.

How do I enable deep link on Android?

Android Studio makes it very easy to test deep links. Click Run > Edit Configurations to edit the configuration of the project. Open the General tab at the top and enter the URI in the Deep Link field in the Launch Options section.


1 Answers

You can query the Intent extra android.intent.extra.REFERRER_NAME in your Activity to check if your app was deep-linked from Google Search.

From the documentation

The value of the extra will have one of the following formats, depending on the type of referrer:

App referrer — "android-app://{package_id}/{scheme}/{host_path}"

Web referrer — "https://{host_path}"

like image 168
Nachi Avatar answered Sep 27 '22 16:09

Nachi