Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Store Review Button

How can we make the "please leave us a review in the app store" functional PopUp in an iOS app?

like image 531
Peter V Avatar asked Jun 04 '11 14:06

Peter V


People also ask

How do I see my review on App Store 2022?

App 2The App StoreTap on your profile icon in the top right, select "Personalized Recommendations," and go into "Ratings & Reviews." You can see other interactions you've had with the App Store, such as purchases, subscriptions, and pre-orders.

Why can't I Write a review on the App Store?

When you can write reviews in the Play Store. You can only review apps and games you've downloaded. You can't leave a review from an enterprise account, like an account for work or school. If any account on your device is part of a beta program for an app, you can't leave a review for that app.

How do I review an app in the App Store 2020?

When you find the app in the search results tap on the app icon or large image thumbnail to view the store details screen of the app. Step 5. Scroll down until you see the “Ratings & Reviews” section with the stars. Tap on a star to give the app a rating (5 stars is the best!).


1 Answers

It's quite easy. Create an action rateGame and change the id 409954448 to your app id.

- (IBAction)rateGame {
    [[UIApplication sharedApplication] 
     openURL:[NSURL URLWithString:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=409954448"]];         
}

This will launch the AppStore app and take the user directly to the page where s/he can rate and review your app. If you want this to happen after, say, 20 times the user loads your app, then you can add an alert in viewDidLoad of your main page:

- (void)viewDidLoad {
    [super viewDidLoad];

    NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
    NSInteger launchCount = [prefs integerForKey:@"launchCount"];
    if (launchCount == 20) {
        launchCount++;
        [prefs setInteger:launchCount forKey:@"launchCount"];
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"LIKE MY APP?" 
                                                        message:@"Please rate it on the App Store!"
                                                       delegate:self 
                                              cancelButtonTitle:@"NO THANKS" 
                                              otherButtonTitles:@"RATE NOW", nil];
        [alert show];
        [alert release];                
    }

}

This assumes you've set up the launchCount in the AppDelegate:

- (BOOL)application:(UIApplication *)application 
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
    NSInteger launchCount = [prefs integerForKey:@"launchCount"];
    launchCount++;
    [prefs setInteger:launchCount  forKey:@"launchCount"];  

// YOUR CODE HERE

}
like image 97
PengOne Avatar answered Oct 13 '22 11:10

PengOne