应用内评论链接 [英] In-app Review Link
问题描述
我正在尝试直接从我的应用链接到应用的评论页面.
I am trying to link directly from my app to the review page of an app.
这与我的一些 App ID 完美搭配,例如这个 [375031865]:
This works perfectly with some of my App ID's, like this one [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,不同的链接格式):
This also works (Same APP ID, different link format):
NSString *reviewURL = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=375031865";
但不适用于其他 App ID,例如这个 [392551011]:
But does not work with other App ID's, like this one [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"
I have no idea how the same exact link with a different APP ID in it will work for some apps but not others. The error that comes up is "Cannot connect to iTunes Store"
有什么想法吗?谢谢!
推荐答案
for 392551011 = The DumDumb Exam HD
for 392551011 = The DumDumb Exam HD
试试:
NSString *reviewURL =
@"itms-apps://itunes.com/app/thedumdumbexamhd";
在设备上的 Safari 中输入上述 URL 会将我带到 App Store 页面.URL 字符串是取自 URL 的应用名称:
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.
这篇关于应用内评论链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!