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

i am try to implement refer app and earn point or money like GooglePay And PhonePay

my point is how to implement in ionic 4 app

You can this plugin in your ionic application :- cordova - How to use Google Play Install Referrer API in Ionic? - Stack Overflow

Note : This plugin only use of android platform