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

Review pop up doesn't appear on Android in production #68

Open alan2030 opened 1 year ago

alan2030 commented 1 year ago

For some reason, review pop up doesn't appear on Android in production. It worked in internal testing, but not in production. ios version has already received 3 times more ratings than in the last 3 years, meaning that it works. Attaching logs. If someone could tell me what is wrong, I would highly appreciate that. Tested that on clean device with new google account.

android-debug.log

Thank you!

Edit: Seems like something to do with below?

09-13 18:40:50.379  4327  4348 E Parcel  : Class not found when unmarshalling: com.google.android.play.core.review.d
09-13 18:40:50.379  4327  4348 E Parcel  : java.lang.ClassNotFoundException: com.google.android.play.core.review.d

Edit2: Works on SOME android devices. 10x less ratings in comparison to iOS, although distribution is the same.

Screen Shot 2022-10-25 at 4 30 51 pm
britannio commented 1 year ago

Hey, if it works in internal testing then it will work in production, likely just once though due to quota mentioned here: https://developer.android.com/guide/playcore/in-app-review#quotas

britannio commented 1 year ago

Glad to hear that it's helped your iOS ratings!

alan2030 commented 1 year ago

@britannio Thank you for quick response! Indeed I am very happy with ios. Rating went up from 2.2 to 4.0 in just a few days. However android still stuck at 2.1 :( I didn't use up any quota on a clean device though (logs were taken from it)

So below is normal during production? 09-13 18:40:50.379 4327 4348 E Parcel : Class not found when unmarshalling: com.google.android.play.core.review.d 09-13 18:40:50.379 4327 4348 E Parcel : java.lang.ClassNotFoundException: com.google.android.play.core.review.d

britannio commented 1 year ago

Have you got this file android/app/proguard-rules.pro?

Maybe adding the following to it will fix the issue.

-keep class com.google.android.play.core.review.** { *; }
-keep class com.google.android.gms.tasks.** { *; }
alan2030 commented 1 year ago

Have you got this file android/app/proguard-rules.pro?

Maybe adding the following to it will fix the issue.

-keep class com.google.android.play.core.review.** { *; }
-keep class com.google.android.gms.tasks.** { *; }

Thank you for reply. I will add this to my next release within a month. I think that review prompt works only on some android devices. For ios I got 400+ ratings after the update, but only 34 on Android. Distribution between platforms is very similar. I know that its working on some devices on Android, because I used to get only a 2-3 ratings a month, but got 34 in the last month.

alan2030 commented 1 year ago

@bri

Have you got this file android/app/proguard-rules.pro? Maybe adding the following to it will fix the issue.

-keep class com.google.android.play.core.review.** { *; }
-keep class com.google.android.gms.tasks.** { *; }

Thank you for reply. I will add this to my next release within a month. I think that review prompt works only on some android devices. For ios I got 400+ ratings after the update, but only 34 on Android. Distribution between platforms is very similar. I know that its working on some devices on Android, because I used to get only a 2-3 ratings a month, but got 34 in the last month.

@britannio I don't appear to have this file. Should I just create an empty file and add below to it?

-keep class com.google.android.play.core.review.** { *; }
-keep class com.google.android.gms.tasks.** { *; }
joknjokn commented 1 year ago

We have also been wondering why we get so few Android-reviews (but many iOS reviews). @britannio, did you/someone test the proguard fix, or is it a guess?

britannio commented 1 year ago

We have also been wondering why we get so few Android-reviews (but many iOS reviews). @britannio, did you/someone test the proguard fix, or is it a guess?

This hasn't been tested as I'm unable to reproduce the issue.

ggsant commented 1 year ago

Make sure you are signed in to a gmail account on the play store for the rating dialog to appear

bksubhuti commented 1 year ago

I had this problem.. because I reviewed my own app a long time ago. It seems that this triggered my "quota". Internal app sharing did work however. I will file an issue related to knowing when the calls fail.
if (await inAppReview.isAvailable()) { // does not really mean the next call will succeed await inAppReview.requestReview(); // it would be good if there were some exit codes that could be read.

mathrocco commented 11 months ago

Take a look into this comment https://github.com/britannio/in_app_review/issues/97#issuecomment-1721462687