r/FlutterDev • • Oct 22 '26

Plugin review_etiquette: A simple and easy to use Flutter plugin to ask the user for a review

https://pub.dev/packages/review_etiquette

Hello fellow devs!

I was unhappy with other plugins (e.g. outdated, developer not reacting anymore, not throttling the call to the underlying API) providing the possibility to ask the user for an in-app review.

That's why I build review_etiquette: https://pub.dev/packages/review_etiquette

It's a simple plugin for Android and iOS that keeps track how often the underlying API was called, so it does not do it too often. For example, iOS only allows to ask the user a maximum of three times in 365 days.

It's nothing special, but maybe it helps someone. :)

I'm using it myself in my currently published two apps.

0 Upvotes

7 comments sorted by

1

u/AhmedZNOUDA Oct 22 '26

Read through the source. Nice to see a package that refuses both the "do you like the app?" pre-dialog and launch counting. The note that `requested` means "we asked", not "they saw it", should be in every review package README.

Two things I noticed:

  1. On Android, launchReviewFlow isn't awaited, so requestReview() returns while the card may still be on screen. The task carries no information, agreed, but it does carry timing: Google's own sample continues the app flow in its completion listener. If the caller does something right after (navigates away, shows a snackbar, starts a transition), it happens under the card. Maybe an opt-in like requestReview(waitForDismiss: true), or at least a line in the README.
  2. A small README suggestion about picking the moment: "the flow finished" isn't always "a success". In a health or finance app, the flow that just completed can end with bad news (a worrying result, a budget overrun). Worth a sentence saying the trigger should depend on the outcome, not only on the flow finishing.

Question: since the timestamp lives in shared_preferences, Android Auto Backup restores it after a reinstall or on a new phone. Was that intended? I'd say it's the right behaviour since it's the same person, just curious whether you considered it.

3

u/or9ob Oct 22 '26

Classic Claude.

-1

u/BoundfoxStudios Oct 23 '26

Surely Claude helped building it, but there are still people behind it that care ;-)

2

u/BoundfoxStudios Oct 23 '26

Thank for checking in!

To 1.: Yes, that is on purpose. I wanted to keep the API the same between iOS and Android and on iOS you cannot await the call. That means, if you want to await on Android and you cannot do on iOS, you have to have two different paths in your own app, that you also need to test. I didn't like that idea, so I didn't make the Android API awaitable forcing you to have the same app flow. That might not fit for some people, but it is intended this way.

2. While you're right at that, do you really want to trigger a "Rate my app" dialog if the user just went bankrupt? :D

Regarding your question: Yes, this was considered. I didn't find any information about the quota reset on a new phone, so it's better not to nag the user too often with the dialog.

2

u/AhmedZNOUDA Oct 23 '26

Ha, fair point on the bankruptcy dialog :D

Makes sense on 1. One code path for both platforms is worth more than an await on Android. Maybe just a line in the README saying the Android call returns before the card closes, so nobody waits on it expecting a result.

And agreed on the backup. Google doesn't say whether the quota follows the account or the device, so keeping the timestamp is the safe side.

2

u/BoundfoxStudios Oct 24 '26

Indeed. Having a little information in the Readme will be helpful. Will update after vacation. :-)

If you want, you can also raise an issue on GitHub with it. :)

1

u/AhmedZNOUDA Oct 24 '26

Enjoy the vacation! I'll open a small issue so it doesn't get lost.