Reputation: 139
I have been trying to implement the In-App Review launched recently by Google. I am not able to see the review dialog even though I get a response stating that the flow was successful.
ReviewManager manager = ReviewManagerFactory.create(this);
Task<ReviewInfo> request = manager.requestReviewFlow();
request.addOnCompleteListener(task -> {
if (task.isSuccessful()) {
ReviewInfo reviewInfo = task.getResult();
Task<Void> flow = manager.launchReviewFlow(activity, reviewInfo);
flow.addOnCompleteListener(task -> {
//** I reach here with the status of task as successful.
});
} else {
// There was some problem, continue regardless of the result.
}
});
Should I publish my app update directly on play store? Or am I doing something wrong?
Upvotes: 1
Views: 3455
Reputation: 1366
I was able to test this on a debug build and repeatedly. Just need to take care of few things,
Use a real device
The application id of your debug build should be the same as the one released on the play store. The library uses application id to find the app on the play store and to show the review flow for. So any applicationIdSuffix
in build.gradle
file for debug build type needs to be commented out while testing this.
Make sure you delete any previous review/comment made on the app at play store. Then clear the app data for Google Play Store app from device's Settings > Apps > Google Play Store > Storage & cache > Clear Storage
Do this after each time the rating flow is shown -- if the flow has been shown before, it won't show again unless the Play Store app data is cleared.
Upvotes: 0
Reputation: 454
After updating the play core library to the latest version, I can able to test the review flow with the debug build on a physical device.(don't test it with emulator)
See play core release notes enter link description here
Upvotes: 0
Reputation: 273
To see the review dialog you have to install your app from the Play Store, either from an internal test track or internal app sharing, see:
https://developer.android.com/guide/playcore/in-app-review/test
Additionally it's not mentioned in the docs but we could only see the review dialog with a "release" build and not a "debug" one.
Upvotes: 4