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
646 stars 56 forks source link

Android app will be closed when the reivew prompt shows up and switch to another app #135

Open liu-chao opened 1 year ago

liu-chao commented 1 year ago

https://user-images.githubusercontent.com/9984217/201258090-56ca2d0e-9960-4bd3-93d9-f555ee4530eb.mp4

Hi there,

as you can see in the uploaded demo video, in my android demo app, the review prompt shows up correctly.

However, if i leave the prompt without doing anything, then I switch to the phone apps backgroud, then my app disappear, looks like closed for some reasons, while the review prompt is still hanging there.

I cannot switch back my app. The only way is clicking the app icon again but obviously the app restarts which is not we expect.

please help to check if this is a react-native-in-app-review module side bug or google bug or issue we need to resolve from our own app. we don't have any clue now.

Thanks much!

MinaSamir11 commented 1 year ago

Hello, at the beginning I would like to apologize for being late.

second, this issue from the first moment was a google bug, because the implementation of the UI and its functionality, holds by google API.

But let me ask you a question can you check console.log in the function of launching the review if it calls every time in your app when it becomes in the foreground/ background, may this is an issue that appears because of the bad of using useEffect or miss understanding of re-renders architecture.