View Full Version : How do I launch App Store within my app?

Nov 1, 2008, 05:57 PM
I am trying to cross-promote my apps by allowing users to touch an icon with my app that launches the App Store to another app I own. I think a good working example of this is the Air Hockey (Free) app, which currently does this.

How do I do this within my code?


Nov 1, 2008, 06:13 PM
I'd think you need a phobos link to your application, but that's not possible until you've already released your application as far as I know.

Nov 1, 2008, 06:15 PM
It was my understanding that the SDK states no app can launch or close a different app.

I could be wrong tho

Nov 1, 2008, 06:16 PM
I have the phobos link, but how do I use it to launch the App Store to my app?

Nov 2, 2008, 08:36 PM

Get the link to your application, an open an url, like this:

- (void)goToAppStore {
NSURL * url = [[NSURL alloc] initWithString:@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=288338285&mt=8"];
[[UIApplication sharedApplication] openURL:url];

This will close your application, and open the AppStore. Have fun.:)