In app review(FakeReviewManager) dialog not showing in android

4.1k views Asked by At

There is a simple app in android studio written in kotlin.This is the following code in onCreate

val manager = FakeReviewManager(baseContext)
    val request = manager.requestReviewFlow()

    request.addOnCompleteListener{ request ->
        if (request.isSuccessful){
            Log.i("message","Rating")
            manager.launchReviewFlow(this, request.result).addOnCompleteListener{
                Log.i("message","Rating1")
            }
        }else{
        }
    }

In Logcat Messages showed successfully. But nothing has showed.How can Fix this this problem?

1

There are 1 answers

3
Ali MS On

FakeReviewManager is strictly used for unit test and does not show any UI, if a UI is what you are expecting.