Google Play / ANDROID
In-app review
Request the Google Play review flow after a meaningful moment in your app, without tying it to your app architecture.
Before you start
- An Android Activity and an app eligible for the Google Play review flow.
- A suitable user milestone that does not interrupt the primary task.
- A test setup that follows the official review testing instructions.
Connect the component
Inspect the component
Choose In-app review and inspect both the component and Initialize example. The example separates the in-app review request from an explicit Store listing action.
Place it in your module
Generate a separate component with your preferred language, package and class name. Sync the generated Review dependency through your existing version declarations.
Choose a meaningful trigger
Initialize the component with application context and pass the current Activity when requesting review. Continue your app flow whether the request completes, fails or shows no dialog.
Validate the experience
Use the official test process. If your app has a user-requested rating action, connect it to the separate Store listing method rather than promising that an in-app prompt will appear.
What initialization looks like
These excerpts use the generated component’s public methods. Import your component and merge the calls into the lifecycle and callbacks shown in its generated guide.
// Call from an appropriate Activity milestone.
val reviews = GooglePlayInAppReview(applicationContext)
reviews.requestReview(
this,
onFinished = {
// Continue normally; no rating result is returned.
},
onFailure = { error ->
// Keep the app flow moving.
}
)// Call from an appropriate Activity milestone.
GooglePlayInAppReview reviews =
new GooglePlayInAppReview(getApplicationContext());
reviews.requestReview(this,
() -> {
// Continue normally; no rating result is returned.
},
error -> {
// Keep the app flow moving.
});INTEGRATION NOTES
- Completion does not reveal whether the dialog appeared or whether a rating was submitted.
- Google Play applies quotas and eligibility rules. Do not build business logic around a guaranteed prompt.
- The plugin does not submit reviews or ratings on a user’s behalf.
Keep the official references close.
GooglePlay API maintains the component template. The SDK behavior and service requirements are defined by the provider.