Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert to using the old templateReviewURL, which works again in iOS 6

  • Loading branch information...
commit ffa71d5374aa5206ce2a0c280ed8cb47058e8a1b 1 parent 09c8ea8
@funkadelic funkadelic authored
Showing with 2 additions and 11 deletions.
  1. +2 −11 Appirater.m
View
13 Appirater.m
@@ -47,7 +47,6 @@
NSString *const kAppiraterReminderRequestDate = @"kAppiraterReminderRequestDate";
NSString *templateReviewURL = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=APP_ID";
-NSString *templateReviewURLiOS6 = @"itms-apps://itunes.apple.com/LANGUAGE/app/idAPP_ID";
static NSString *_appId;
static double _daysUntilPrompt = 30;
@@ -359,16 +358,8 @@ + (void)rateApp {
#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:@"%@", _appId]];
-
- reviewURL = [reviewURL stringByReplacingOccurrencesOfString:@"LANGUAGE" withString:[NSString stringWithFormat:@"%@", [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]]];
-
- } else {
- reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];
- }
+ // this URL Scheme should work in the iOS 6 App Store in addition to older stores
+ NSString *reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];
[userDefaults setBool:YES forKey:kAppiraterRatedCurrentVersion];
[userDefaults synchronize];
Please sign in to comment.
Something went wrong with that request. Please try again.