Permalink
Browse files

Merge pull request #67 from funkadelic/master

Revert to old itms-apps URL for iOS 6
  • Loading branch information...
2 parents 09c8ea8 + ffa71d5 commit f314885101bb86a9d3849ff9b9a7f815ec64ab6c @arashpayan committed Sep 21, 2012
Showing with 2 additions and 11 deletions.
  1. +2 −11 Appirater.m
View
@@ -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];

0 comments on commit f314885

Please sign in to comment.