Search code examples
iphoneobjective-cdownloadin-app-purchaseitunes-sdk

Download new app from within an iPhone-app


I have developed a game and are planning to make a "Lite" version of that game in order to promote the "Premium" version of the game. Information about how to make In-App-Purchase is easy to find. But what I cannot find is how to actually download the application from within my Lite-version, after the purchase. I do not intend to update the lite version to a preimum version but instead treat the premium version as a new application that must be downloaded.

How do I do that, and where can I find that information?

Thanks in advance!


Solution

  • The concepts "in app purchase" and "new application" are mutually exclusive.

    The easiest thing to do is just let people navigate to your new app on the itunes store, and let them decide whether or not to buy it from there:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.itunes.com/apps/yourPaidVersionAppName"]];