'Use of in_app_review package in flutter?
Could someone please show me how you have used in_app_review https://pub.dev/packages/in_app_review to review app on google playstore.
A sample code will be very helpful.
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ganesh Bhat |
