RateMyApp icon indicating copy to clipboard operation
RateMyApp copied to clipboard

About "not now" handling of native rating dialogs

Open artkoenig opened this issue 2 years ago • 0 comments

Hi, due to the lack of feedback if the users clicks on "not now" in the native rating dialog, I would implement it like this:

RateMyAppBuilder(
rateMyApp: RateMyApp(
    googlePlayIdentifier: '...',
    appStoreIdentifier: '...'),
    builder: (context) => const MyApp(),
    onInitialized: (context, rateMyApp) {
      showRateDialog(rateMyApp);
    }
);


  void showRateDialog(RateMyApp rateMyApp) async {
    if (rateMyApp.shouldOpenDialog && await rateMyApp.isNativeReviewDialogSupported == true) {
      await rateMyApp.launchNativeReviewDialog();
      await rateMyApp.reset();
      rateMyApp.populateWithDefaultConditions();
    }
  }

Is it ok or do you have another suggestion?

artkoenig avatar May 12 '23 13:05 artkoenig