In-App Review with Jetpack Compose
Adding the capability to review your app without navigating to the play store can boost your app rating and review. However, it’s also very important that the In-App review flow remains at a place where users might be enjoying your content. Here let’s focus on how to add this capability to your app built with Jetpack Compose.

Let’s get started with In-App review implementation
The first thing that is required is to add the dependency in the Gradle file.
implementation 'com.google.android.play:review-ktx:2.0.0'
Now we are good to go, so let’s start adding this capability.
Choose your composable
As the In-App review flow starts with the bottom sheet that is predefined through the SDK that means you will not have to worry about creating the appropriate UI instead you can just focus on providing the entry point to trigger this flow.
So you might have already created the composable that shows content based on your app functionality now, let’s add the In-App review flow to that.
ReviewManager
Well, the review manager plays a vital role to create the ReviewInfo object and also to start the flow.
Do not forget to create a review manager object through the remember block so as to avoid reinitialization during recomposition.
ReviewInfo
As we have the review manager object now the next important part is to get the ReviewInfo object
The review manager and review info object is important to trigger the In-App review flow.
But one of the most important question is where to keep this onCompleteListener so as to get the review info object. Well one of the easiest approaches is to create a remember composable like this
Now the final step is to trigger the In-App review flow by passing the review manager and review info object.
As my objective was to show this flow when a user enters the create story screen so here I have added the trigger point through the LaunchedEffect like this
As reviewInfo object changes from default null value to non-null, the LaunchedEffect lambda will get triggered automatically.
Now here is the final code by summing all together
Well to check out how well it works do not forget to install the app where I have added this feature.
This app “Stories” is all about sharing your experience in terms of short stories which is entirely built with Jetpack Compose and uses Firebase services. The best part is that its size is just around 3.5 Mb.