Skip to content

Commit

Permalink
Use new Apple app store review URL
Browse files Browse the repository at this point in the history
  • Loading branch information
frankus committed Aug 11, 2017
1 parent fe6a7ce commit 0ea3841
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,7 @@ - (NSURL *)URLForRatingApp {
- (NSURL *)legacyURLForRatingApp {
NSString *URLString = nil;

if ([[[UIDevice currentDevice] systemVersion] compare:@"7.1" options:NSNumericSearch] != NSOrderedAscending) {
URLString = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", [self appID]];
} else {
URLString = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/%@/app/id%@", [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode], [self appID]];
}
URLString = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@?action=write-review", [self appID]];

return [NSURL URLWithString:URLString];
}
Expand Down

0 comments on commit 0ea3841

Please sign in to comment.