User clicks [login to view URL] and he will be redirected to Play Store or App Store with aff_id=123 parameter appended to our app e.g. [login to view URL]
And when user installs the app, we should be able to record it. Here "123" would be a dynamic ID.
It should work in both android and ios. A Demo of the same would be required