britannio / in_app_review

A Flutter plugin for showing the In-App Review/System Rating pop up on Android, IOS, and MacOS. It makes it easy for users to rate your app.
327 stars 82 forks source link

Way to find if review popup will not open #63

Closed nigamsiddhant closed 2 years ago

nigamsiddhant commented 2 years ago

Hello,

I want to show in app rating when it is Available but mostly inAppReview.isAvailable() is giving true and then i am trying to open inAppReview.requestReview(); but due to some reason it is not getting opened,

Is there a way to get inAppReview.isAvailable as. also or suppose inAppReview.requestReview fails to open so it return false so that I can take the user to App Store or play store.

paul678 commented 2 years ago

Unfortunately there would be no way know for sure if the In-App UI was ever shown or not (e.g android docs).

You will need to design your flow as to account for this and unfortunately you won't be able to implement the "redirect to store if in-app is not available".

britannio commented 2 years ago

Yes, you can rely on it opening once per user, after that, you can use openStoreListing().