1

我正在使用 Appirator 代码,这是一个很棒的工具。但是,当请求审查/评级时,我遇到了 iOS 9 的问题。它只会加载应用程序的视图,而不是预加载“写评论”页面。以下内容与 iOS8 完美配合。

NSString *templateReviewURLiOS8 = @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=APP_ID&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software";

任何帮助将不胜感激。

4

2 回答 2

1

也许您需要根据 iOS 版本更新您的 URL。

NSString *str;
float ver = [[[UIDevice currentDevice] systemVersion] floatValue];
 if (ver >= 7.0 && ver < 7.1) {
    str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@", appId];
} else if (ver >= 8.0) {
    str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", appId];
} else {
    str = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", appId];
}
于 2015-09-28T19:54:37.303 回答
0
NSString *url = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=919745844&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software"];

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

以上将我带到当前版本评论页面。

我假设您在 Appirater 中使用 [[UIApplication sharedApplication]openURL:] 方法,而不是使用应用内 SKStoreProductViewController ,因为您正在传递该 url。在使用 Xcode 7.0.1 构建的 iOS 9.0.1 的 iPhone 5C 上,带有您 URL 的 openURL 实际上可以工作并打开评论页面。

您对您的应用程序的当前版本有任何评论吗?

我不相信有一种方法可以使用 SKStoreProductViewController 显示评论页面。

于 2015-09-29T19:57:09.093 回答