简体   繁体   English

如何将我的应用程序链接到App Store开发人员页面?

[英]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/esotericdevelopmenthttp://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://会直接带你到那里。

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.

相关问题 如何在iPhone应用程序中链接到App Store中的另一个应用程序? - How do I link to another app in the App Store in an iPhone app? 您如何直接链接到应用商店应用更新页面? - how do you link directly to app store app update page? 如何检测我的iOS应用内浏览器中的链接是否会启动App Store? - How do I detect if a link in my iOS in-app browser will launch the App Store? 如何在App Store(iTunes)中链接到我的应用程序? - How can I link to my app in the App Store (iTunes)? 如何在我将应用程序提交到商店之前,从同一个应用程序中链接到我的应用程序的iTunes页面? - How to link to iTunes page of my app from within the very same app even before I submit the app to the store? 如何编译我的应用程序以提交到应用程序商店? - How do I compile my app for submission to the app store? 如何在App Store中本地化我的应用程序名称 - How do I localize my app's name in the App Store 我怎么知道我的应用程序是否在iTunes应用程序商店中出现? - how do i know if my app is featured in the iTunes app store? 如何在App Store中以开发者姓名删除当前年份? - How can I remove the current year in my developer name in the App Store? 如何获得应用商店链接以升级我的应用(iphone)? - How can I get the app store link to upgrade my app (iphone)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM