Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onRatingChanged doesn't fire when i rate application #11

Closed
asvtsv opened this issue Aug 15, 2019 · 4 comments
Closed

onRatingChanged doesn't fire when i rate application #11

asvtsv opened this issue Aug 15, 2019 · 4 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@asvtsv
Copy link

asvtsv commented Aug 15, 2019

Describe the bug
when i rate app(select stars), i think that onRatingChanged will fire and i can understand the user rate and conditionally do something

 _rateMyApp.showStarRateDialog(
      context,
      title: 'Rate this app',
      message: 'You like this app ? Then take a little bit of your time to leave a rating :',
      onRatingChanged: (stars) {
        print('stars - ', stars)
      },
      ignoreIOS: false,
      starRatingOptions: StarRatingOptions(),
    );

but onRatingChanged doesn't fire when i rate application, or this method will fire only after click on submit button(which disabled in developer mode)?

@Skyost Skyost self-assigned this Aug 15, 2019
@Skyost Skyost added bug Something isn't working question Further information is requested labels Aug 15, 2019
@Skyost
Copy link
Owner

Skyost commented Aug 15, 2019

  1. Submit button is only disabled in dev mode on iOS and when ignoreIOS is set to false (using the default iOS rating dialog in fact).
  2. I think an error occurs (see your Console tab). onRatingChanged should return a widget, for instance :
_rateMyApp.showStarRateDialog(
  context,
  onRatingChanged: (stars) {
    return FlatButton(
      child: Text((stars == null ? '0' : stars.round().toString()) + ' star(s)'),
      onPressed: () => print('stars - ', (stars ?? 0.0)),
    );
  },
  ignoreIOS: true,
);

@asvtsv
Copy link
Author

asvtsv commented Aug 15, 2019

  1. Submit button is only disabled in dev mode on iOS and when ignoreIOS is set to false (using the default iOS rating dialog in fact).

but how i can test default iOS rating dialog(when i set ignoreIOS in true i get custom (for iOs) dialog)?

@Skyost
Copy link
Owner

Skyost commented Aug 16, 2019

You set ignoreIOS to false (default is false anyway) and you can test. The only caveat is that you cannot click on "Review" (but it shouldn't be a problem for you as this button will work when you're going to release your app on the App Store).

@asvtsv
Copy link
Author

asvtsv commented Aug 22, 2019

thanks!=)

@asvtsv asvtsv closed this as completed Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants