I have read the articale Google Play In-App Review API.
The Google Play In-App Review API lets you prompt users to submit Play Store ratings and reviews without the inconvenience of leaving your app or game, just like Code A
How can I know a user who has finished the ratings of an App with Google Play In-App Review API ?
I hope that the ratings UI will not be displayed again if a user have submitted a ratings for the App.
Code A
//val manager = ReviewManagerFactory.create(mContext)
val manager = FakeReviewManager(mContext)
val request = manager.requestReviewFlow()
request.addOnCompleteListener { task ->
if (task.isSuccessful) {
// We got the ReviewInfo object
val reviewInfo = task.result
val flow = manager.launchReviewFlow(mActivity, reviewInfo)
flow.addOnCompleteListener { _ ->
// The flow has finished. The API does not indicate whether the user
// reviewed or not, or even whether the review dialog was shown. Thus, no
// matter the result, we continue our app flow.
Log.e("my","cc")
}
Log.e("my","bb")
} else {
Log.e("my","aa")
// There was some problem, continue regardless of the result.
}
}
If you are worried about ratings UI will show up again if a user have already submitted a review for the App then it won't. It will not show up. However it will return a Success response as i observed . See the Test documentation .