【问题标题】:Xcode 7 - Appirater on iOS9Xcode 7 - iOS9 上的 Appirater
【发布时间】:2015-09-28 16:17:54
【问题描述】:

我正在使用 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";

任何帮助将不胜感激。

【问题讨论】:

  • 你在什么设备上测试这个?我刚刚在运行 iOS 9 的 iPod touch 上使用现有模板 URL 对其进行了测试,它直接将我带到了应用商店应用中的评论页面。
  • @ArashPayan 我在装有最新版本 iOS 9.0.1 的 iPhone 6 Plus 上运行它。

标签: ios9 xcode7 rate review appirater


【解决方案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];
}

【讨论】:

  • 我按照你的建议做了,但上面提供的链接没有加载 iTunes Store。 iOS 8 的链接会加载商店,但不会像 iOS 8 那样显示“评论”页面。
  • 嗯。太奇怪了。我最近用这些行更新了我的一个应用程序,并在 App Store 中为我带来了应用程序页面。不按原样审查,而是带来应用页面。
  • 是的,它会显示 App 页面,但不会显示“写评论” 在 iOS 8 中,它会为用户显示所有内容,这样他们就不必点击它。它使用户不太可能放弃评论。感谢您的帮助。
【解决方案2】:
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 显示评论页面。

【讨论】:

  • 我还没有发布iOS9的更新版本。我在手机上对其进行测试时,它只会显示应用页面,而不是用户可以选择星星和评论的页面。
  • 仍然没有关注你。我有使用 Appirater 的应用程序,这些应用程序是针对 iOS 8 SDK(不是 iOS 9)构建的,其中上述 url 格式仍将用户带到 iOS 9 设备上带有“写评论”按钮的评论页面。
  • 今晚我将在另一台设备上运行它。我的手机可能有点时髦。感谢您的意见。
  • Np。我认为我们现在仍然可以使用以前的 Appirater 代码。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-12-24
  • 1970-01-01
相关资源
最近更新 更多