advanced_in_app_review
适用于 iOS 和 Android 的高级应用内评价。仅在满足预设条件(如安装后天数等)后尝试显示应用内评价。
一个用于在 Android 和 iOS 上显示应用内评价/系统评分弹窗的 Flutter 插件。它让用户轻松为您的应用评分。
{"sdk":"flutter"}^2.0.11^2.5.5{"sdk":"flutter"}^1.0.0以下为英文项目原文快照,最新内容请访问 GitHub。
A Flutter plugin that lets you show a review pop up where users can leave a review for your app without needing to leave your app.
The average end-user will only write a review if something is wrong with your App. This leads to an unfairly negative skew in the ratings, when the majority of satisfied customers don’t leave reviews and only the dissatisfied ones do. In order to counter-balance the negatives, advanced_in_app_review prompts the user to write a review, but only after the developer knows they are satisfied. For example, you may only show the popup if the user has been using it for more than a week, and has done at least 5 significant events (the core functionality of your App). The rules are fully customizable for your App and easy to setup.
It uses the In-App Review API on Android and the SKStoreReviewController on iOS/MacOS.
The Play In-App Review library is a part of the Google Play Core libraries. Please include the following Gradle dependency to integrate the Play In-App Review Library. More info see Android doc.
// In your app’s build.gradle file:
...
dependencies {
// This dependency is downloaded from the Google’s Maven repository.
// So, make sure you also include that repository in your project's build.gradle file.
implementation 'com.google.android.play:review:2.0.1'
// For Kotlin users also add the Kotlin extensions library for Play In-App Review:
implementation 'com.google.android.play:review-ktx:2.0.1'
...
}
@override
void initState() {
super.initState();
initPlatformState();
AdvancedInAppReview()
.setMinDaysBeforeRemind(7)
.setMinDaysAfterInstall(2)
.setMinLaunchTimes(2)
.setMinSecondsBeforeShowDialog(4)
.monitor();
}
Google encourages developers not to spam users with review requests right when they first start an app, instead asking studios to prompt people only after they've used the application for a while. Developers also shouldn't interrupt users in the middle of a task. After leaving a review or aborting, people should be able to continue whatever they were doing seamlessly.
Android decides when and if such a review view will be presented to the user. So please do not wonder if the view is not presented during debugging. As Google also noted, it will not be working in debug mode. Please see https://developer.android.com/guide/playcore/in-app-review/test
Requires Android 5 Lollipop (API 21) or higher and the Google Play Store to be installed.
Requires iOS version 10.3
Issues & pull requests are more than welcome!