britannio / in_app_review

A Flutter plugin for showing the In-App Review/System Rating pop up on Android, IOS, and MacOS. It makes it easy for users to rate your app.
306 stars 78 forks source link

Dialogue not showing up in android physical device. #38

Closed pratikbaid3 closed 1 year ago

pratikbaid3 commented 3 years ago
final InAppReview inAppReview = InAppReview.instance;
                if (await inAppReview.isAvailable()) {
                  inAppReview.requestReview();
                }

This is the code snippet I used and it works fine in the ios simulator but when I try it on an android physical device, I don't get any dialogue.

This is the console output

I/InAppReviewPlugin( 6821): onMethodCall: isAvailable
I/InAppReviewPlugin( 6821): isAvailable: called
I/InAppReviewPlugin( 6821): noContextOrActivity: called
I/InAppReviewPlugin( 6821): isAvailable: playStoreInstalled: true
I/InAppReviewPlugin( 6821): isAvailable: lollipopOrLater: true
I/InAppReviewPlugin( 6821): isAvailable: The Play Store is available and Android 5 or later is being used
I/InAppReviewPlugin( 6821): cacheReviewInfo: called
I/InAppReviewPlugin( 6821): noContextOrActivity: called
I/PlayCore( 6821): UID: [10558]  PID: [6821] ReviewService : requestInAppReview (com.hustlecreatives.penalty_kick_freelance)
I/InAppReviewPlugin( 6821): cacheReviewInfo: Requesting review flow
I/PlayCore( 6821): UID: [10558]  PID: [6821] ReviewService : Initiate binding to the service.
I/PlayCore( 6821): UID: [10558]  PID: [6821] ReviewService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.inappreviewservice.InAppReviewService})
I/PlayCore( 6821): UID: [10558]  PID: [6821] ReviewService : linkToDeath
I/PlayCore( 6821): UID: [10558]  PID: [6821] OnRequestInstallCallback : onGetLaunchReviewFlowInfo
I/InAppReviewPlugin( 6821): onComplete: Successfully requested review flow
I/PlayCore( 6821): UID: [10558]  PID: [6821] ReviewService : Unbind from service.
I/InAppReviewPlugin( 6821): onMethodCall: requestReview
I/InAppReviewPlugin( 6821): requestReview: called
I/InAppReviewPlugin( 6821): noContextOrActivity: called
I/InAppReviewPlugin( 6821): launchReviewFlow: called
I/InAppReviewPlugin( 6821): noContextOrActivity: called
W/ActivityThread( 6821): handleWindowVisibility: no activity for token android.os.BinderProxy@d0d4ace
I/OPFD_Manager( 6821): Follow AOSP false
I/OPFD_Manager( 6821): Same ViewRoot Cfg. Ignore...
I/OPFD_Manager( 6821): Follow AOSP false
I/OPFD_Manager( 6821): Same ViewRoot Cfg. Ignore...
V/ViewRootImpl( 6821): The specified message queue synchronization  barrier token has not been posted or has already been removed
W/Choreographer( 6821): Already have a pending vsync event.  There should only be one at a time.
W/JavaBinder( 6821): BinderProxy is being destroyed but the application did not call unlinkToDeath to unlink all of its death recipients beforehand.  Releasing leaked death recipient: com.google.android.play.core.internal.ai
I/OPFD_Manager( 6821): Follow AOSP false
I/OPFD_Manager( 6821): Same ViewRoot Cfg. Ignore...
britannio commented 3 years ago

Check this out: https://github.com/britannio/in_app_review/tree/master/in_app_review#android

britannio commented 3 years ago

Actually, testing instructions are at https://github.com/britannio/in_app_review/tree/master/in_app_review#testing

AhmadRehan71 commented 3 years ago

+1 Same issue

britannio commented 3 years ago

+1 Same issue

@AhmadRehan71  Did you see my previous comment?

AhmadRehan71 commented 3 years ago

@britannio Yes, I followed all those steps/rules but still its not showing. Infact it is opening the app on play store but its not showing the rating star dialogue. Even the, await inAppReview.isAvailable(); is also true;

AhmadRehan71 commented 3 years ago

It will work with the play store release (Upload it to google play store and then download it and test it it will work) not in local release.

yashmittalJTG commented 2 years ago

@AhmadRehan71 hy, facing this same issue how did you resolved it?

AhmadRehan71 commented 2 years ago

@AhmadRehan71 hy, facing this same issue how did you resolved it?

I did not resolve it, It just work when you upload your release on play store. In debug mode it does not work. And if you want to test it then you can upload your release apk to beta testing.

yashmittalJTG commented 2 years ago

@AhmadRehan71 i have uploaded my bundle on internal app sharing, and dowloaded it from playstore but still , UI does not popup in android only.

superkeka commented 2 years ago

@yashmittalJTG Same problem on physical device and in internal testing channel

PsyOhm23 commented 2 years ago

This is not due to the package conception but to the Android ReviewManager library conception. The launchReviewFlow method's documentation says :

Note: In some circumstances the review flow will not be shown to the user, e.g. they have already seen it recently, so do not assume that calling this method will always display the review dialog. App should resume when the returned task is completed.

Also, the launchReviewFlow method returns a Task<Void> that not allow to check the status of the review.

If you want to see the dialog again, you can still clear the data of the Google Play Store but it's not a solution for end users.

I guess the only way to fix this issue is to wait for the In App Review API - dialog not showing to be fixed

britannio commented 1 year ago

Closing this as a stale issue. If you're still facing the issue, drop a comment and I'll reopen it.