views:

42

answers:

1

After a user purchases an app from the app store, and runs it, is it possible for the app to know how much the user paid for it? Does Apple have any APIs that can access this type of metadata about the actual purchase of an app?

If not, I suppose I could fall back to looking up the country of the user, doing currency conversion rates, and then lookup the price of the app at the time of purchase. That's another thing, is it even possible to know when a user has purchased an app? They could purchase an app, and then not run it for days or weeks, so I cannot assume the date they first launch the app was also the date of purchase.

Any thoughts on how to obtain this information? Thanks!

+1  A: 

This isn't possible through any kind of API. What you can do is have the device send data back to your server on first launch with location and date. This way, you can mark them in your DB as xx paid yy on this date. You know what yy is currently because you run the server and the app page. Make this info accessible somehow on your server, and when you need it in the app, call your servers method to retrieve it.

coneybeare
This is probably the most practical solution to this problem, but it doesn't solve the problem of how do you know when the user actually purchased the app? They could have purchased it, then waited 12 days, and then launched it for the first time, at which point the price of the app may have changed.
Andrew Garrison
I think that is probably an uncommon use case. I would be willing to be most people launch an app immediately after buying it.
coneybeare