Once your app is live on playstore, app rating and reviews are very crusical factors to drive more downloads. To achive this, we usually ask users to rate the app by showing a dialog with couple of buttons and redirecting them to playstore. With this user experience, there are chances that user might not come back to our app once redirected to playstore. Also a novice user finds it difficult to rate the app on playstore.


Luckly google provided an API called to show the rating widget in the app itself without user leaving the app.
The In-App Review is part of play core library. Once the widget is integrated, we can see the rating widget displayed in the same app in a bottom sheet.
Integrating In-App review is very simple. It can be achived with very minimal code. Let’s see how to integrate it.
1. The In-App review API is part of Play Core API, so you have to include the library in your app’s build.gradle. Here I am adding material library as well as I want to show fallback if there is any error in in-app review API.
2. The next step is creating the instance of ReviewManager interface. This class provides necessary methods to start the review flow.
Here is the complete code required for in-app review flow.
To test the in-app review flow, you should have the app approved already on PlayStore. This doesn’t mean the app should be available to public. At least you should have the account ready for or .
You can find more info on testing part on android developer . If you have any queries, please let me know in the comments section below.
Cheers!
Happy Coding 😀
Hi there! I am Founder at androidhive and programming enthusiast. My skills includes Android, iOS, PHP, Ruby on Rails and lot more. If you have any idea that you would want me to develop? Let’s talk: [email protected]
I am seeing this for the first time.
Good article.
Yup this is introduced recently!
Nice Tutorial…
I am trying this on my already published app. I followed all steps as per above tutorial but when I click on my button to open review dialog, not able to open this review dialog I mean there is no error and no action. Can you help me in this situation.
The API considers lot of factors. If you have submitted the review already on playstore, delete the Review first on play store app and try again.
It’s really great tutorial. Thank you 🙂
Cheer!
Thank you so much for this 🙂
You are welcome 🙂
Awesome..
Hi, I run in article your app.When I click “rate app” button, your app open in webview browser.
It did not open androidhive app rating and reviews in your app example. screen :https://prnt.sc/urf5py what is problem?
I think I have replied your query on facebook. But yeah androidhive app is not there on playstore. I just used the name thats all. You can keep the package name of any app that is there on playstore (example whatsapp package name) and try once.
I did the operations you said, I still have the same problem. My code: https://we.tl/t-u9VxmhCgLl Can you help me?
Are you sure you haven’t write the review for Netflix app before on playstore? Also try running app on different android phones, with differnt gmail accounts.
I am sure. other way, ı have not Netflix app. Netflix is ​​someone else’s application. I just got the package name of the Netflix application from google play. I created my new project with this package name, then I added your codes to this project https://we.tl/t-u9VxmhCgLl. The application in this code was created. When you clicked the rate button on the real device, the pop up window did not open. I debugged. if (task.isSuccessful ()) {goes into this section. but the scoring does not appear under the application
I hope you have read the Testing In-App Review Flow section in the article. The In-app review UI will be shown only when the app is live on Playstore (Internal Testing, Internal Sharing). Once your app is live on playstore, then you will see it working for your own app.
Where have you been? The tutorials have been coming slow…
Been busy in other projects and not getting much time to work on the blog.
Great post! Enjoyed reading it 🙂


Thank you 🙂
Testing part is bit difficult but works great!
Yes. The app should be available on Playstore at least for internal testing!
Thank you
You are welcome:)
AndroidHive
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.9”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));
copyright © 2017 Droid5 Informatics Pvt Ltd
www.droid5.com

source