arashpayan / appirater

A utility that reminds your iPhone app's users to review the app.

Home Page:http://arashpayan.com/blog/2009/09/07/presenting-appirater/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS6 review link works again

umekun123 opened this issue · comments

commented

Apple fixed the review link issue on iOS6 app store, and it works again.
But, it doesn't go to the review page where you can start writing right away as you did on iOS5.

I'm not sure if there is better way, but I am doing like this at the moment.

  • (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];
    NSString *reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];

    [userDefaults setBool:YES forKey:kAppiraterRatedCurrentVersion];
    [userDefaults synchronize];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];

    endif

    }

Thanks, @umekun123. I've reopened issue 50 to handle this bug.