Skip to content

About "not now" handling of native rating dialogs #135

@artkoenig

Description

@artkoenig

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions