★ TouchArcade is in READ ONLY mode this weekend while we upgrade. Please support us on Patreon.

App Store Links... within an app

09-17-2009, 10:09 AM
Joined: Sep 2009
Location: Austin, TX
Posts: 41
App Store Links... within an app

Is there an easy way to add links to the App Store within an app or game that launches the App Store on the iPhone? We'd like to put some cross-promotion within our next round of game updates, but are looking for an easy solution to do so.

09-17-2009, 10:42 AM
Joined: Aug 2009
Posts: 26
I think that's just opening the direct url to your game in itunes. Like

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://linktoitunes"]];
Note though that your app will be closed when the user opens the link.

Lunarcy a really challenging retro looking arcade game.
09-17-2009, 06:01 PM
Joined: Sep 2009
Location: Palo Alto, CA
Posts: 11
That's a good suggestions, but not the best solution...

If you are going to be adding links to your game and it's going to quit the game and open the App Store app then you might want to alert your user. We have an application framework we developed and when we are going to follow an external link we have a class that plays a sound. pops open an Alert Box with a message asking for confirmation.

Okaying the confirmation quits the game (saving any game state) then opens the app store. You can also set a flag so that when you relaunch the game (can be within a time frame) if goes right back to where you were.

Remember you want everything to run smoothly in the game - jettisoning them out is not really a smooth transition, but you can lessen the blow. (^_^)

If you need more help, ping me and I'll see what I can do. You can also check StackOverflow.

Able Pear Software