Make it easy for users to rate your iOS App

January 12th, 2012 Leave a comment Go to comments

In order to increase mobile app downloads, you always need good words about your app from your existing users. Unfortunately, Apple does not provide an easy way for users to rate your app. The users must go to your app’s page in App Store in order to rate your app. Most users won’t go to your App Store page by themselves to rate your app. A simple fix is to allow your users an option to take them to the app review page right from inside your app. You can use the following code to redirect your users to your app’s review page in App Store.

NSUserDefaults *userDefaults = [NSUserDefaultsstandardUserDefaults];
BOOL currentVersionRated = [userDefaultsboolForKey:@"RatedCurrentVersion"];

if (currentVersionRated) {
UIAlertView *alertView = [[UIAlertViewalloc] initWithTitle:@"App Rating" message:@"You have already rated current version of this app." delegate:nilcancelButtonTitle:@"OK" otherButtonTitles:nil];
[alertView show];
[alertView release];
else {
NSString *urlStr = @"itms-apps://";
NSURL *reviewUrl = [NSURL URLWithString:[urlStrstringByReplacingOccurrencesOfString:@"APP_ID" withString:@"11111111111"]];
[userDefaults synchronize];
[[UIApplicationsharedApplication] openURL:reviewUrl];

In the code snippet above, we first check if the user has already rated the current version of the app. If user has already rated, we show an alert message. Of course, you can handle this case any way you like. If the user has not rated the app then, we redirect the user to the app’s review page in App Store. For this you will need your APP ID. You can find the ID of your app in the URL of your app’s page on iTunes Store. (You must open the page in a browser to see the URL).

Similarly, if you want your app users to refer to more of your apps you can redirect them to your company site:

NSString *urlStr = @"itms://";
NSURL *reviewUrl = [NSURL URLWithString:[urlStrstringByReplacingOccurrencesOfString:@"APP_DEV_ID" withString:@"11111111111"]];	// Replace with your app developer page ID
[[UIApplicationsharedApplication] openURL:reviewUrl];

You can find your company ID on App Store in the URL of your company page on iTunes Store (when viewed in a browser).

  1. No comments yet.

Leave a reply


five − = 0