6

我正在尝试直接从我的应用链接到应用的评论页面。

这与我的一些 App ID 完美配合,比如这个 [375031865]:

NSString *reviewURL = @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=375031865&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software";
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];

这也有效(相同的 APP ID,不同的链接格式):

NSString *reviewURL = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=375031865";

但不适用于其他 App ID,例如这个 [392551011]:

NSString *reviewURL = @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=392551011&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software";
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];

或者:

NSString *reviewURL = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=392551011";

我不知道其中具有不同 APP ID 的相同确切链接如何适用于某些应用程序,但不适用于其他应用程序。出现的错误是“无法连接到 iTunes Store”

有任何想法吗?谢谢!

4

2 回答 2

1

for 392551011 = The DumDumb Exam HD

try:

NSString *reviewURL =
 @"itms-apps://itunes.com/app/thedumdumbexamhd";

Entering the above URL into Safari on the device will take me to the App Store page. The URL string is the app name taken from the URL:

http://itunes.apple.com/us/app/the-dumdumb-exam-hd/id392551011?mt=8

then converted into lower case and the spaces and the dashes removed.

于 2010-12-03T15:43:22.600 回答
0

您应该仔细找出您的应用程序ID!有时,桌面和移动 iTunes 会有所不同。

我使用 iTunes(复制 URL)的方式并坚持“无法连接到 iTunes”。它返回了不规则的应用程序 ID!

所以对我来说,答案是在 iTunesConnect 或此处检查应用程序 ID:http: //itunes.apple.com/linkmaker/

于 2012-03-13T18:11:13.770 回答