1

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!

Michael Baldry
  • 1,990
  • 2
  • 14
  • 28

2 Answers2

0

The short answer is, not possible. Apple does not provide an api for you to do this. There are companies which can attribute an app installation from a served ad or url but I am not aware of any which provide an api for you to get that info within the app, they usually just have a web portal where you can see how many people clicked on an ad and how many people installed from those clicks.

If you post what you are actually trying to accomplish with this information in the app, maybe someone can help you come up with a better solution.

Kris Gellci
  • 9,539
  • 6
  • 40
  • 47
  • Thanks. I've updated the original question. If other companies are doing this (AppFlyer?), it must be possible (I hope) – Michael Baldry Sep 14 '15 at 16:30
  • 1
    you're describing "deferred deep linking" or "passing params through an app install" - you can try a new keyword search with those terms. or here is a recent relevant question http://stackoverflow.com/questions/15955798/ios-app-store-pass-parameters-in-store-download-link - I know this from working at Branch Metrics which is a mobile linking sdk- here's a link to our docs on assigning credits within an app based on links https://dev.branch.io/recipes/referral_links_with_incentives/ios/ – acingersoll Sep 23 '15 at 21:14
0

What I was looking for can be achieved via Smart App Banners

https://developer.apple.com/library/mac/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

Michael Baldry
  • 1,990
  • 2
  • 14
  • 28