oblador / react-native-store-review

Rate on App/Play Store directly in your React Native app
MIT License
751 stars 52 forks source link

Log exception when requesting a review fails on Android #83

Closed evanwalsh closed 1 year ago

evanwalsh commented 1 year ago

This is just a small change that should make debugging easier when things fall apart on Android. Log.w takes a nullable Throwable argument after the msg. Information about that exception will be included in the log output.

For example:

Requesting review failed
com.google.android.play.core.review.internal.zzu: Failed to bind to the service.

I needed this to understand why the review prompt wasn't showing (turns out it's because my emulator doesn't have Google Play installed) and I hope this can help others in the future!!