Updated 31 August 2020
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. User can give 1 to 5 star & comment will be optional.
For users & developers, rating & reviews are import. Through rating & review, users can decide which application is right for them. Developers become to know what users love and what they should improve in app. If there is an option through which users give review within application, without leaving the application, it will be more convenience for users.
1 |
implementation 'com.google.android.play:core:1.8.0' |
ReviewManager
is the interface that lets your app start review flow. Obtain it by creating an instance using the ReviewManagerFactory.
1 |
val manager = ReviewManagerFactory.create(context) |
launchReviewFlow
method. So, it should fetch ahead of time.
1 2 3 4 5 6 7 8 9 10 11 |
private var reviewInfo: ReviewInfo? = null val manager = ReviewManagerFactory.create(context) val request = manager.requestReviewFlow() requestFlow.addOnCompleteListener { request -> if (request.isSuccessful) { //Received ReviewInfo object reviewInfo = request.result } else { //Problem in receiving object reviewInfo = null } |
ReviewInfo
instance to launch the in-app review flow
1 2 3 4 |
val flow = manager.launchReviewFlow(activity, reviewInfo) flow.addOnCompleteListener { _ -> } |
For more information, check following link : Google Play In-App Review
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
Be the first to comment.