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

Work with Expo? #5

Closed GollyJer closed 3 years ago

GollyJer commented 4 years ago

I noticed this doesn't need to be linked, explicitly, but is that because links automatically? Or is there really no need to link; which means it will work with an Expo managed app?

Thanks!

mateusw3c commented 4 years ago

I tried using it at the expo but it didn't work :(

MinaSamir11 commented 3 years ago

@GollyJer @mateusw3c Going to create pull request with expo

Hosam-hsm commented 3 years ago

Does it support now?

mateusw3c commented 3 years ago

I solved my problem using expo-store-review (v2.2.0) package for expo. This solution need expo v^39.0.0.

Hosam-hsm commented 3 years ago

But when I used the expo-store-review package, the review modal only showed once on the first build only. I thought it was because I already rated the app and so I removed my ratings for the app in the stores. But it is not showing the modal. Any idea on that?

mateusw3c commented 3 years ago

It's a quota problem.

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

To provide a great user experience, Google Play enforces a time-bound quota on how often a user can be shown the review dialog. Because of this quota, calling the launchReviewFlow method more than once during a short period of time (for example, less than a month) might not always display a dialog.

Because the quota is subject to change, it's important to apply your own logic and target the best possible moment to request a review. For example, you should not have a call-to-action option (such as a button) to trigger the API, as a user might have already hit their quota and the flow won’t be shown, presenting a broken experience to the user. For this use case, redirect the user to the Play Store instead.

Hosam-hsm commented 3 years ago

Great. Thanks!

MinaSamir11 commented 3 years ago

I'm closing this issue.

If you use Expo to create a project you'll just need to "eject".

 expo eject
-> Then install package normally: 

npm install react-native-in-app-review