Reputation: 31
Could someone please show how in_app_review https://pub.dev/packages/in_app_review is used to review flutter apps on google playstore.
A sample code will be very helpful.
Upvotes: 0
Views: 7275
Reputation: 3022
There is a package on top of in_app_review which helps handling the conditions on what the app should try to display the rating. If you use https://pub.dev/packages/advanced_in_app_review you can specify
All this helps to get reviews from satisfied users as unhappy users may delete the app after the first try. Adding a gap between the install and the try to display may help to overcome this.
Use it like this:
AdvancedInAppReview()
.setMinDaysBeforeRemind(7)
.setMinDaysAfterInstall(2)
.setMinLaunchTimes(2)
.monitor();
Upvotes: 3
Reputation: 256
To anyone who is trying to implement this, Please read through the document which has guidelines on how and where to place the review dialogue.
use the following code in any of your App page:
final InAppReview inAppReview = InAppReview.instance;
if (await inAppReview.isAvailable()) {
Future.delayed(const Duration(seconds: 2), () {
inAppReview.requestReview();
});
}
I would recommend to use it with a delay, so when user views a page, the dialogue for review comes after few seconds.
Also if you are wondering how to check if app was reviewed before or how to make sure this dialogue just doesn't pop up every time, please go through this doc. Dialogue doesn't appear if quota is reached or if user has already reviewed before.
Upvotes: 7