我正在使用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";任何帮助都将不胜感激。
发布于 2015-09-29 03:54:37
也许你需要根据iOS的版本更新你的网址。
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-30 03:57:09
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 sharedApplicationopenURL:]方法,而不是应用内的SKStoreProductViewController,因为你传递的是这个url。在装有Xcode9.0.1的iPhone 5C上,使用Xcode7.0.1构建的openURL确实可以工作并打开评论页面。
你对你的应用的当前版本有什么评论吗?
我不相信有一种方法来显示评论页面使用SKStoreProductViewController。
https://stackoverflow.com/questions/32827517
复制相似问题