[英]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).
我只是想让我的应用程序链接到App Store中的开发者页面(所以显然在iPhone上打开App Store应用程序)。
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
它只是打开itunes应用程序(它告诉我它无法完成请求),而不是应用程序商店应用程序
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]];
}
Here's what worked for me using iOS6 and tested on iPhone5 and iPad: 以下是使用iOS6并在iPhone5和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. 这直接到App Store应用程序而不是iTunes或Safari。
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: 根据QA 1633的 公司名称示例部分,要链接到您公司的应用程序,您只需链接到:
http://itunes.com/apps/your_company_name http://itunes.com/apps/your_company_name
For example, for MacMation's apps => http://itunes.com/apps/macmation 例如,对于MacMation的应用程序=> 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...). 我测试了这个网址和其他一些网站(比如Sega,朋友的公司......)。 It works.
有用。
After a few redirections, you end up on the App Store application, listing all the applications of your company. 经过一些重定向后,您最终会进入App Store应用程序,列出贵公司的所有应用程序。
With your company name, don't forget to remove the dash, to end up with: http://itunes.com/apps/esotericdevelopment
使用您的公司名称,不要忘记删除破折号,最后:
http://itunes.com/apps/esotericdevelopment
: 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. 跟进:右键单击iTunes中的公司名称所获得的链接适用于Safari(在Mac上),但在Mobile Safari上不起作用,并且与您描述的错误相同:最终在iTunes应用程序上错误消息。
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) (在iOS 4.1上的iPhone上测试过)
One thing I would change above is to use the itms://
scheme instead of http://
. 我上面要改变的一件事是使用
itms://
方案而不是http://
。 Using http://
will cause it to launch Safari and redirect to the iTunes store app. 使用
http://
将导致它启动Safari并重定向到iTunes商店应用程序。 Using itms://
will take you there directly. 使用
itms://
会直接带你到那里。
您应阅读技术问答QA1629和技术问答QA1633 。
I think you are trying to send the user to your app store link, is yes, then its simple, open that link in safari. 我想你正试图将用户发送到你的应用程序商店链接,是的,然后它简单,打开safari中的链接。 eg.[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://www.google.co.in"]];
例如。[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“http://www.google.co.in”]];
If not, please elaborate. 如果没有,请详细说明。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.