Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

redirect iphone app to apple store

I have an iphone app, and when there are upgrades available, I want to prompt the user to upgrade, and if they click upgrade, I want to redirect them to the apple store. How is this done?

Thanks

like image 408
clarity Avatar asked Nov 22 '10 23:11

clarity


1 Answers

Apple documents the process here: http://developer.apple.com/library/ios/#qa/qa2008/qa1629.html

The basics boils down to using an NSURL to open an iTunes link:

NSString *iTunesLink = @"http://itunes.apple.com/us/app/warehouse51/id364201184?mt=8";

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];

However, I don't believe there is a way to direct to the upgrade tab.

Note: phobos links are generally outdated, so ignore that your link won't look like the example in Apple's doc. It will generally look like the one in my updated example here.

like image 86
Jeff B Avatar answered Oct 05 '22 16:10

Jeff B