Flutter In-App Review: When and How to Ask

· 7 min read

Ratings move installs, and the easiest way to get more of them is the system review prompt: a small sheet where people can tap stars without leaving your app. In Flutter you call it with one package, but the hard part is not the code. It is choosing the moment, because both stores quietly limit how often the prompt appears and both publish rules about when you may ask.

This post covers the in_app_review package, the timing rules from Apple and Google, and how to test a prompt that often refuses to show up. It fits into the wider build flow in building a Flutter app with Claude Code.

The package and its three methods

The community standard is in_app_review. It wraps StoreKit on iOS and macOS and the Play In-App Review API on Android. It has three methods:

  • isAvailable(): checks whether the prompt can be shown on this device.
  • requestReview(): “triggers the In-App Review prompt.” Supported on Android, iOS and macOS.
  • openStoreListing({appStoreId, microsoftStoreId}): opens your store page. “appStoreId is only required on iOS and MacOS.”

Add it and call it like this:

import 'package:in_app_review/in_app_review.dart';

final InAppReview inAppReview = InAppReview.instance;

Future<void> maybeAskForReview() async {
  if (await inAppReview.isAvailable()) {
    inAppReview.requestReview();
  }
}

Platform minimums from the package page: Android “Requires Android 5 Lollipop(API 21) or higher and the Google Play Store must be installed”, iOS 10.3, macOS 10.14.

You do not get to decide if it shows

The most important thing to understand: calling requestReview() is a request, not a command.

On iOS, Apple says “the system displays the review prompt to a user a maximum of three times within a 365-day period.” People can also “disable requests for reviews from ever appearing on their device.”

On Android, Google “enforces a time-bound quota on how often a user can be shown the review dialog.” Calling the flow “more than once during a short period of time (for example, less than a month) might not always display a dialog.” Google adds that “the specific value of the quota is an implementation detail” and can change without notice.

Neither API tells you whether the prompt actually appeared. So design as if most calls do nothing, and spend your few real chances well.

When Apple and Google say to ask

The two stores agree on almost everything.

Ask after real engagement. Apple’s Human Interface Guidelines: “Ask for a rating only after people have demonstrated engagement with your app or game. For example, you might prompt people when they complete a game level or a significant task.” Google: “Trigger the in-app review flow after a user has experienced enough of your app or game to provide useful feedback.”

Not on launch, not during onboarding. Apple: “Avoid asking for a rating on first launch or during onboarding.” StoreKit’s guide goes further: “Avoid showing a request for a review immediately when a user launches your app, even if it isn’t the first time it launches.”

Not mid-task. Apple: “Look for natural breaks or stopping points in your app or game where a rating request is less likely to be bothersome.” StoreKit’s own sample even waits two seconds after the triggering event “to avoid interrupting the person using the app.”

Space requests out. Apple suggests “allowing at least a week or two between requests, prompting again after people demonstrate additional engagement.”

Never from a button. Apple: “Avoid requesting a review as the result of a user action.” Google: “you should not have a call-to-action option (such as a button) to trigger the API”, because the user may have hit the quota and see nothing.

No pre-questions on Android. Google is explicit that your app “shouldn’t ask the user any questions before or while presenting the rating button or card, including questions about their opinion (such as ‘Do you like the app?’).” That rules out the common “Enjoying the app? Yes / No” gate before the prompt. Google also says to show the card “as-is”, with no overlay and no programmatic dismissal.

App Store Guideline 3.2.2(x) adds a hard line: “Apps must not force users to rate the app, review the app, download other apps, or other store-related actions in order to access functionality, content, or use of the app.” So never lock a feature behind a review. For more on picking the moment, see when to ask for an App Store review.

A simple trigger rule in Dart

Pick one “success moment” in your app: a finished workout, a saved document, the third completed habit. Then gate the call on a few conditions you store locally:

class ReviewGate {
  ReviewGate(this.prefs);
  final SharedPreferences prefs;

  static const _successKey = 'review_success_count';
  static const _lastAskKey = 'review_last_ask_ms';

  Future<void> onSuccessMoment() async {
    final count = (prefs.getInt(_successKey) ?? 0) + 1;
    await prefs.setInt(_successKey, count);

    final lastAsk = prefs.getInt(_lastAskKey) ?? 0;
    final daysSince = DateTime.now()
        .difference(DateTime.fromMillisecondsSinceEpoch(lastAsk))
        .inDays;

    if (count >= 3 && daysSince >= 14) {
      await Future.delayed(const Duration(seconds: 2));
      final review = InAppReview.instance;
      if (await review.isAvailable()) {
        await prefs.setInt(_lastAskKey, DateTime.now().millisecondsSinceEpoch);
        review.requestReview();
      }
    }
  }
}

The thresholds (three successes, 14 days) are your choice, not a store rule. They follow Apple’s “week or two” advice and keep you clear of launch and onboarding. Also skip the call right after an error, a failed purchase or a crash recovery. Someone who just hit a bug is not the person to ask.

The Rate Us button in settings

Users do look for a way to rate you, and that is fine. Just do not wire it to requestReview(). Use openStoreListing(), which always works:

TextButton(
  onPressed: () => InAppReview.instance.openStoreListing(
    appStoreId: '1234567890', // your numeric App Store ID
  ),
  child: const Text('Rate this app'),
)

If you want iOS to open straight to the review composer, Apple’s sample appends action=write-review to your App Store URL: https://apps.apple.com/app/idYOURAPPSTOREID?action=write-review. You can open that with url_launcher.

How to test it

This is where most people think the integration is broken.

iOS. The package says requestReview() can be tested on the simulator or a device during development, but it “will do nothing when testing via TestFlight.” That is expected. openStoreListing() needs a physical device.

Android. “You must upload your app to the Play Store to test requestReview().” The package recommends internal app sharing or an internal test track. If the dialog stops appearing, the package’s troubleshooting table lists “The quota has been reached” as the usual cause. Google also notes that reviews from a closed test track are shared privately with you rather than posted publicly.

A practical test plan:

  1. Log a debug line every time your gate decides to call requestReview(), so you can verify the logic without the dialog.
  2. Check the dialog once on the iOS simulator.
  3. Upload to internal testing on Play and confirm the card appears once.
  4. Do not panic when the second call shows nothing. That is the quota.

Add these steps to your mobile app QA checklist so a release never ships with the prompt firing on launch.

After the ratings arrive

The prompt gets you ratings, and some of them come with text. Read them, answer them and feed patterns back into the product. See how to reply to App Store reviews and mining App Store reviews for ideas. A quick look at ratings belongs in a weekly app monitoring routine too.

Apple also lets you reset your summary rating with a new version, but warns it “tends to result in having fewer ratings overall.” Most small apps should keep their history.

Checklist

  • Use in_app_review, call isAvailable() first.
  • Ask after a real success moment, never on launch, onboarding or mid-task.
  • Space requests by at least a week or two.
  • No pre-question on Android, no feature gating anywhere.
  • Rate button uses openStoreListing(), not requestReview().
  • Test on the iOS simulator and a Play internal track, not TestFlight.

MobileKit’s retention skill applies these same review-prompt rules when it plans engagement features.

Sources read on the day this post was written: in_app_review on pub.dev, Google Play In-App Review API, Apple HIG: Ratings and reviews, Apple: Requesting App Store reviews and App Store Review Guidelines.

Questions

How often can the iOS review prompt appear?

Apple says the system displays the review prompt to a user a maximum of three times within a 365-day period, no matter how often your app calls the API.

Can I show the in-app review prompt from a Rate Us button?

No. Both Apple and Google say not to trigger the prompt from a user action or button, because the quota may already be used up and nothing will appear. Use openStoreListing for a button instead.

Why does requestReview do nothing in my test build?

The in_app_review package says requestReview does nothing when testing via TestFlight. On Android you must upload the app to the Play Store, for example with internal app sharing, to test it.

Try it on your next idea

One payment, every update to this major version, and a refund window if it is not for you. Refund policy.