cordovaionic-frameworkhybrid-mobile-appreferrals

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).


Solution

  • 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