Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liu-chao opened this issue Nov 11, 2022 · 1 comment

Comments

@liu-chao
Copy link

liu-chao commented Nov 11, 2022

20221110-111433.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!

@liu-chao liu-chao changed the title Android app is closed when the reivew prompt shows up and switch to another Android app will be closed when the reivew prompt shows up and switch to another app Nov 11, 2022
@MinaSamir11
Copy link
Owner

MinaSamir11 commented Dec 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@liu-chao @MinaSamir11 and others