Given a link to an iOS app on the app store, I'd like to be able to find the source of the purchase/installation inside my app.
I can't really find anything online, maybe I'm searching the wrong keywords.
I'm hoping handleOpenURL may get passed a bunch of information when you start the app after purchasing or something?
The end goal is for example:
- User clicks advert offering £10 in-app credit when installed, the link to the app store contains some special tags to identify this type of install
- User clicks install on the app store that was opened
- App is installed and opened for the first time
- App recognises the tags and pops up with this, talks to a server notifying of a new install, for the campaign, with the users unique id, server gives credit
In reality there is no credit, but I thought this was a good way to illustrate. So ignore any security concerns you might have with this!
Any advice appreciated!