Skip to content

MishaVernik/Deep-Link-Ad

Repository files navigation

Deep-Link-Ad

  1. Create an account on the www.branch.io
  2. Going to the «Link settings», choose Android, write into Android URI Scheme (example: deeplink://) + enable App Links SHA256 Cert Fingerprints MD5:
    SHA1:
    You can create it just following next steps – click on the right panel “Gradle” – choose :app – Tasks – Android – signing Report and waiting for respond MD5 & SHA1.
  3. If you wanna activate function - track event (means collecting all users info and sending on server on AppsFlyer.com)
  4. Set up the AndroidManifest.xml Step 1: Connect some permissions

Step 2:

Insert in .MainActivity, where last 2 links were created on branch.io 

Step 3: Connecting to branch.io with a key.

Step 4:

Step 5: Enable deeplink access(activity)

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
    android:host="go.onelink.me"
    android:path="/app/deeplink1"
    android:scheme="https" />

Step 6: If you wanna enable AppsFlyer

<intent-filter>
             
    <action android:name="com.android.vending.INSTALL_REFERRER" />
         
</intent-filter>

Step 7: if you have done with step 6, than in the fil MainActivity.java (lines 176 – 192) copy into void OnCreate
Step 8: Connect app to the facebook (this is optional option) https://developers.facebook.com/docs/app-ads/deep-linking

https://developers.facebook.com/docs/applinks

Step 9: Rest description – in the code.

Releases

No releases published

Packages

No packages published

Languages