Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[in_app_review] Add play-services-base dependency to Android.
Other hybrid implementations of the In-App Reviews API use this dependency and the absence of it may be causing silent failures for apps or devices that do not transitively include the library.
- Loading branch information
d258bcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@britannio I found out why other hybrid implementations add this dependency.
For instance for React Native, take a look st the commit where they introduced it.
MinaSamir11/react-native-in-app-review@79890b5
They use it to check if Google Services is available or not. I'm not sure if that's needed or if it is redundant. The In App Review API already tells you when it's available or not 🤷♂️
d258bcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good find, thank you. Maybe there's a difference between the play store being installed (I check for this) and play services being available (I do not check for this but this play-services-base library seems to allow for this). The difference would look like this.
d258bcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ultimately though, it seems like if
requestReview()
didn't work before this commit (although I cannot reproduce), it will continue to fail.