Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Revert to old itms-apps URL for iOS 6 #67

Merged
merged 1 commit into from

2 participants

@funkadelic

Fix for issue #50 ... reverting to the old/original itms-apps:// url since it appears to be working again in iOS 6

@arashpayan arashpayan merged commit f314885 into arashpayan:master
@arashpayan
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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];
Something went wrong with that request. Please try again.