直接“iTunes 中的费率”我的应用程序中的链接?

发布于 2024-09-17 09:54:36 字数 112 浏览 8 评论 0原文

我在 Stackoverflow 上看到过一些帖子,其中描述了如何允许用户定向到应用商店中的应用。

有没有办法直接链接到App Store中的评级和评论表单

I've seen posts here on Stackoverflow that describe how to allow users to be directed to apps on the app store.

Is there a way to link directly to the rating and comments form in the App Store?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

彻夜缠绵 2024-09-24 09:54:36

使用此博客中描述的技术可以实现这一点:

http:// www.memention.com/blog/2009/09/03/Open-Reviews.html

基本上,您可以通过以下方式调用 UIApplication openURL:

NSString* url = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", myAppID];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];

要在您的应用程序在应用程序商店中可用之前获取您的应用程序 ID,请使用 iTunesConnect定义您的新应用程序 - 为其指定名称、描述、图标、屏幕截图等。定义后,您可以从应用程序的标识符部分获取 Apple ID。

编辑

这是一个有效的辅助网址/方法:

NSString* url = [NSString stringWithFormat:  @"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%@&pageNumber=0&sortOrdering=1&type=Purple+Software&mt=8", appid];

[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url ]];

我相信两者之间的区别在于第一种技术(itms-apps://)将直接启动App Store应用程序,而第二种技术(http://) 将通过 http Web URL 产生的重定向间接启动它。这必须得到证实;这只是我的回忆。

This IS possible using the technique described on this blog:

http://www.memention.com/blog/2009/09/03/Open-Reviews.html

basically you call UIApplication openURL with the following:

NSString* url = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", myAppID];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];

To get your app ID before your app is available in the app store, use iTunesConnect to define your new app - give it a name, description, icon, screenshots, etc. Once defined, you can get the Apple ID from the Identifiers section for the app.

EDIT:

Here is a secondary url/method that works:

NSString* url = [NSString stringWithFormat:  @"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%@&pageNumber=0&sortOrdering=1&type=Purple+Software&mt=8", appid];

[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url ]];

I believe the difference between the two is that the first technique (itms-apps://) will launch the App Store app directly while the second one (http://) will launch it indirectly via a redirect resulting from the http web URL. This would have to be confirmed; this is only my recollection.

家住魔仙堡 2024-09-24 09:54:36

这里的答案已经过时了。

这对我来说有效(Xcode 5 - iOS 7 - 仅适用于设备,不适用于模拟器!):

itms-apps://itunes.apple.com/app/idYOUR_APP_ID

对于低于 iOS 7 的版本,请使用旧版本:

itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YOUR_APP_ID

Answers here are outdated.

This works on my end (Xcode 5 - iOS 7 - works only on Device, not simulator!):

itms-apps://itunes.apple.com/app/idYOUR_APP_ID

For versions lower than iOS 7 use the old one:

itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YOUR_APP_ID
浸婚纱 2024-09-24 09:54:36

我正在使用的简单方法是;

 -(void)rateApp {

     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[@"itms-apps://itunes.apple.com/app/" stringByAppendingString: @"id547101139"]]]; }

Simple method that I am using is;

 -(void)rateApp {

     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[@"itms-apps://itunes.apple.com/app/" stringByAppendingString: @"id547101139"]]]; }
相思碎 2024-09-24 09:54:36

您还可以使用 SKStoreProductViewController 作为替代方案。它将在您的应用程序中打开商店。与打开另一个应用程序相比,您可能更喜欢它,尤其是在 iPad 上。

You can also use SKStoreProductViewController as an alternative. It will open the store in your app. You may like it better than opening another app, especially on iPads.

淡忘如思 2024-09-24 09:54:36

感谢 Ahment swift 版本:

            UIApplication.sharedApplication().openURL(NSURL(string: "itms-apps://itunes.apple.com/app/id951334398")!)

Thanks to Ahment swift version:

            UIApplication.sharedApplication().openURL(NSURL(string: "itms-apps://itunes.apple.com/app/id951334398")!)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文