We have a mobile app that\'s available in both Google Play Store and Apple AppStore, we want to implement a referral program to get more users to install and use our App. >
Disclaimer: not being satisfied with the original accepted answer, I'm providing an alternative solution back to this "popular" thread.
On Android, this is not an issue at all. Google will let you access the referrer param sent at install time by registering a receiver, you can also leverage their install referrer API.
For iOS it is a bit trickier as it's not officially supported. As proposed here you can do fingerprinting but that's cumbersome and comes with a high degree of inaccuracy. There are two more elegant solutions I came across:
example.com/invite/123
), display a web page before redirecting to the App Store.UIPasteboard.general.string
(swift) and do some parsing or API calls