Skyost / RateMyApp

This plugin allows to kindly ask users to rate your app if custom conditions are met (eg. install time, number of launches, etc...).

Home Page:https://pub.dev/packages/rate_my_app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

launchStore() not launching Play Store

samueladekunle opened this issue · comments

I tried launching the Play Store, after tapping the "RATE" button displayed by showRateDialog, but instead of launching the Google Play Store, nothing shows up.

Here is a snippet of code:

_rateMyApp.showRateDialog(
  context,
  listener: (button) {
    switch (button) {
      case RateMyAppDialogButton.rate:
        print('Launch store');
        _rateMyApp.launchStore().then((result) {
          print('Result $result');
        });
        break;
      default:
    }
    return true;
  },
);

I already provided the app id to the googlePlayIdentifier argument, at the point of instantiating _rateMyApp.

print('Result $result');, prints Result: LaunchStoreResult.storeOpened, but the Play Store does not come up.

What is the way forward on this issue?