Google Play In-App Review API
The Google Play In-App Review API lets you prompt users to submit Play Store ratings and reviews without the inconvenience of leaving your app or game.
Generally, the in-app review flow (see figure 1) can be triggered at any time throughout the user journey of your app. During the flow, the user has the ability to rate your app using the 1 to 5 star system and to add an optional comment. Once submitted, the review is sent to the Play Store and eventually displayed.
Figure 1. In-app review flow for a user
In-app reviews only work on the following devices:
- Android devices (phones and tablets) running Android 5.0 (API level 21) or higher that have the Google Play Store installed.
- Chrome OS devices that have the Google Play Store installed.
Play Core library requirements
To integrate in-app reviews in your app, your app must use version 1.8.0 or higher of the Play Core library.
When to request an in-app review
Follow these guidelines to help you decide when to request in-app reviews from users:
- Trigger the in-app review flow after a user has experienced enough of your app or game to provide useful feedback.
- Do not prompt the user excessively for a review. This approach helps minimize user frustration and limit API usage (see the section on quotas).
- Your app should not 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?”) or predictive questions (such as “Would you rate this app 5 stars”).
Follow these guidelines as you determine how to integrate in-app reviews in your app:
- Surface the card as-is, without tampering or modifying the existing design in any way, including size, opacity, shape, or other properties.
- Do not add any overlay on top of the card or around the card.
- The card and the card’s background should be on the topmost layer. Once the card has surfaced, do not programmatically remove the card. The card is removed automatically based on either the user’s explicit action, or an internal Play Store mechanism.
To provide a great user experience, Google Play enforces a quota on how often a user can be shown the review dialog. Because of this, calling a
launchReviewFlow method might not always display a dialog. For example, you should not have a call-to-action option (such as a button) to trigger a review as a user might have already hit their quota and the flow won’t be shown, presenting a broken experience to the user.
Integrate in-app reviews in your app
Learn how to integrate in-app reviews in your app, depending on your development environment: