Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In app review(FakeReviewManager) dialog not showing in android

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?

like image 631
KOrra Avatar asked Sep 08 '20 07:09

KOrra


Video Answer


1 Answers

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

like image 55
Ali MS Avatar answered Oct 22 '22 16:10

Ali MS