Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ethana

macrumors 6502a
Original poster
Jul 17, 2008
836
0
Seattle, WA
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?

Ethan
 

liptonlover

macrumors 6502a
Mar 13, 2008
989
0
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.
 

NT1440

macrumors Pentium
May 18, 2008
15,093
22,159
It was my understanding that the SDK states no app can launch or close a different app.

I could be wrong tho
 

CarlosH

macrumors member
Apr 9, 2008
76
8
San Francisco, CA
anyone???

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

Code:
- (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.:)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.