Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement referral code in Hybrid Mobile Apps while downloading from store

I need to implement a scenario in which App is shared by any user with some unique code attached at end of link

https://play.google.com/store/apps/details?id=com.App.hybrid.myapp&Ref=A8%gdbT^7YgH

When someone download app from given above link, he will get some promotions, or discount etc.

is there any way to implement this in ionic apps (Ionic 1).

like image 316
trighati Avatar asked Apr 12 '17 08:04

trighati


People also ask

How would you implement a referral program in mobile apps both Android and iPhone?

It can be done using Google Campaign Measurement where in the utm_source just give unique number/string for each user which you will receive when user's friend installs the app as Google Play store will broadcast it after the installation. Refer to this question. Highly active question.

How do app referral links work?

Share your referral link with friends, and every time someone downloads the app by clicking through from your referral link, you'll be credited with a referral. When someone clicks your personal link on their mobile phone it will send them through to the iPhone or Android app store where they can download the app.


1 Answers

After a bit of googling, got to know that there are some readymade plugins to achieve what you are looking for. Basically you are looking for InstallReferrerReceiver implemenation in cordova android.

Suggest you to look at android-referrer plugin which captures the referrer value passed when an android app is installed from a webpage and stores it in the applications shared preferences for later retrieval.

Also check out the following links as well which should be handy

  1. Referral tracking in cordova android app
  2. InstallReferrerReceiver in cordova android app

Hope it helps. Cheers

like image 88
Gandhi Avatar answered Oct 05 '22 08:10

Gandhi