oblador / react-native-store-review

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

Not working on Android #93

Open Douglasgomes027 opened 11 months ago

Douglasgomes027 commented 11 months ago

Hey. Can you help me with this issue, please. Error Message: WARN Possible Unhandled Promise Rejection (id: 0): Error: StoreReview native module not available, did you forget to link the library? requestReview@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:338393:22 http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:328346:34 tryCallOne@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:23437:16 http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:23518:27 _callTimer@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:24432:17 _callImmediatesPass@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:24466:17 callImmediates@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:24637:33 callImmediates@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:4630:35 http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:4442:34 guard@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:4614:15 flushedQueue@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.bypantry.bypantry&modulesOnly=false&runModule=true:4441:21 flushedQueue@[native code] callFunctionReturnFlushedQueue@[native code]

Platform: Android

Captura de Tela 2023-11-29 às 22 50 36

For iOs worked

muhammadrofiq commented 10 months ago

i faced same issue here, any solutions @oblador ?

codefromahmad commented 9 months ago

@muhammadrofiq did you find any solution?

gollobo commented 8 months ago

Any update on this? Now that Google Play is giving more importance than ever to user reviews and ratings, libraries like this one are more important than ever for React-Native. However, I haven't found any that are updated recently. Any suggestions?

sabinayakc commented 8 months ago

@muhammadrofiq @codefromahmad @Douglasgomes027 Its working for me - RN 0.73.5.

What are your RN versions? I would run .\gradlew clean inside android directory and then try building it again.

joevtap commented 8 months ago

Not working here either.

RN version is 0.63.5.

Tried ./gradlew clean but the runtime exception still occurs.

twocs commented 5 months ago

I can reproduce the issue with all the code from the Readme in this snack: https://snack.expo.dev/@tom.a/smiling-green-truffle?platform=android The Readme doesn't contain any mention of requiring Android to link a library.

Expo Snack reproduction: https://snack.expo.dev/@tom.a/smiling-green-truffle?platform=android

image

eedeebee commented 2 months ago

Fwiw this builds for me on Android (RN 0.72) but at least in Debug, the review dialog never comes up. Works fine on iOS.

xhrebi04 commented 1 month ago

@eedeebee I had the same problem as you. I needed to test the In-App Review on Android, but I couldn't get it to work either in debug mode or via the signed APK.

Only this tutorial and testing via "Internal app sharing" helped me. Alternatively, there is official documentation on how to test In-App Review for Android, which you can find here.

I hope this helps 😊