Iphone 在应用程序中单击分级时无法连接到iTunes商店
我想在iTunes中打开应用程序链接,同时单击“评估此应用程序”链接。 但问题是 “无法继续您的请求”或“无法连接到iTunes商店”。 这只发生在iPad mini上。否则就行了。 请任何人都能解决这个问题Iphone 在应用程序中单击分级时无法连接到iTunes商店,iphone,ios,ipad,ipad-mini,appirater,Iphone,Ios,Ipad,Ipad Mini,Appirater,我想在iTunes中打开应用程序链接,同时单击“评估此应用程序”链接。 但问题是 “无法继续您的请求”或“无法连接到iTunes商店”。 这只发生在iPad mini上。否则就行了。 请任何人都能解决这个问题 + (void)rateApp { #if TARGET_IPHONE_SIMULATOR NSLog(@"APPIRATER NOTE: iTunes App Store is not supported on the iOS simulator. Unable to open
+ (void)rateApp {
#if TARGET_IPHONE_SIMULATOR
NSLog(@"APPIRATER NOTE: iTunes App Store is not supported on the iOS simulator. Unable to open App Store page.");
#else
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
// added work arround for wrong URL Scheme used in new App store on iOS 6
NSString *reviewURL;
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0) {
reviewURL = [templateReviewURLiOS6 stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%d", APPIRATER_APP_ID]];
reviewURL = [reviewURL stringByReplacingOccurrencesOfString:@"LANGUAGE" withString:[NSString stringWithFormat:@"%@", [[NSLocale preferredLanguages] objectAtIndex:0]]];
NSLog(@"reviewURL: %@",reviewURL);
} else {
reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%d", APPIRATER_APP_ID]];
}
[userDefaults setBool:YES forKey:kAppiraterRatedCurrentVersion];
[userDefaults synchronize];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
#endif
}
尝试在openURL方法之前记录您的reviewURL,并检查您是否从代码中获得了有效的URL。我希望您的iPad mini具有iOS 6。您还尝试过什么类型的其他设备?他们的iOS版本是什么?如果它们低于iOS 6,则
If
循环中的代码存在问题。我看到了你的iTunes链接。它看起来有点奇怪,里面有前缀。嘿,兄弟,这不是我的速率代码,这是来自iRate Repo,它与其他所有设备都可以正常工作,所有设备都有iOS 6。最后我找到了解决方案,只要更换你最新的iRate Repo库,它就会正常工作。。。