RateMyApp
RateMyApp copied to clipboard
About "not now" handling of native rating dialogs
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?