在应用评论链接 [英] In-app Review Link

查看:173
本文介绍了在应用评论链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想直接从我的应用程序链接到一个应用程序的审核页面。

I am trying to link directly from my app to the review page of an 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]];

这也可以(相同的应用程序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";

但不会与其他应用程序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";

我不知道如何在它与不同的应用程序ID完全一样的链接将一些应用程序,而不是其他工作。出现的错误是无法连接到iTunes商店

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"

任何想法?
谢谢!

Any ideas? Thanks!

推荐答案

有关392551011 =的DumDumb考试HD

for 392551011 = The DumDumb Exam HD

尝试:

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

输入上述网址进入Safari浏览器的设备上会带我到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 /美国/应用/最dumdumb考试-HD / id392551011?MT = 8

然后转换成小写和空间和破折号删除。

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

这篇关于在应用评论链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆