MinaSamir11 / react-native-in-app-review

The Google Play In-App Review API, App store rating API lets you prompt users to submit Play Store or App store ratings and reviews without the inconvenience of leaving your app or game.
MIT License
665 stars 62 forks source link

Add listener to dialog buttons #21

Closed ghost closed 3 years ago

ghost commented 3 years ago

It would be great if there was a way to add a listener from JS to the cancel and submit buttons so that we can know if presenting the dialog should happen later on or never again.

MinaSamir11 commented 3 years ago

API Hint: the API does not indicate whether the user reviewed or not, or even whether the review dialog was shown. Thus, no matter the result, we continue our app flow.

if we add a listener is Successful if flow has finish even if user closes the review window, will sent is successful true also, because of API, would be useful for you ?

https://developer.android.com/guide/playcore/in-app-review/kotlin-java#kotlin

ghost commented 3 years ago

Yeah, you're right, looking at the Android documentation it's not possible to tell whether the dialog is shown, the cancel or submit buttons are pressed. Same things with Apple https://developer.apple.com/documentation/storekit/skstorereviewcontroller.

I'm closing this ticket. Good chat and thank you for the quick reply! :)