Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I link my app to the App Store developer page?

I have tried and tried but I cannot seem to make this work. I am just trying to get my app to link to my developer page in the App Store (so open the App Store application on the iPhone, obviously).

There has to be something I am missing. Perhaps some format issue? Can anyone help me out?

My apologies. But I have looked at all the zillion other questions and a good portion of them were old and were implementing the same method

 NSString *iTunesLink = @"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284417350&mt=8";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];

does not work. It just opens itunes app (which tells me it can't complete request), not the app store app

Here is the real code i'm using

- (IBAction)developer:(id)sender {
NSString *iTunesLink = @"http://itunes.apple.com/us/artist/esoteric-development/id416932838";

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];
}
like image 302
HenryGale Avatar asked Feb 25 '23 22:02

HenryGale


2 Answers

Based on the section Company Name examples of the QA 1633, to link to the applications of your company, you simply need to link to:

http://itunes.com/apps/your_company_name

For example, for MacMation's apps => http://itunes.com/apps/macmation
or in code:

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

I tested with this url and a few others (like Sega, friends' companies...). It works.
After a few redirections, you end up on the App Store application, listing all the applications of your company.

With your company name, don't forget to remove the dash, to end up with: http://itunes.com/apps/esotericdevelopment


Follow-up: The link you get from right-clicking the company name in iTunes works on Safari (on a Mac), but doesn't work on Mobile Safari, with the same error that you were describing: ends up on iTunes app with an error message.

Same broken behavior when opened from your app with this code:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/fr/artist/macmation/id355312244"]];

(Tested on an iPhone on iOS 4.1)

like image 113
Guillaume Avatar answered Mar 05 '23 13:03

Guillaume


Here's what worked for me using iOS6 and tested on iPhone5 and iPad:

- (IBAction)ourOtherAppsPressed:(id)sender {
    NSString *iTunesLink = @"itms-apps://itunes.apple.com/us/artist/samer-maaliki/id615908604";

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

This goes straight to the App Store app rather than iTunes or Safari.

like image 27
Samer Maaliki Avatar answered Mar 05 '23 14:03

Samer Maaliki