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

Ping timeout in background #40

Open
davidliu opened this issue Jan 4, 2023 · 2 comments
Open

Ping timeout in background #40

davidliu opened this issue Jan 4, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@davidliu
Copy link
Contributor

davidliu commented Jan 4, 2023

Describe the bug
Websocket client signal disconnected when react-native APP based on RN sdk goes from Android PIP(picture in picture) mode to normal mode after 20 seconds.
From our debugging, it is caused by the ping time out. So our theory is: when APP goes to Android PIP mode, the RN has gone into background mode, and the ping is not working, when RN goes back from PIP mode to normal, it times out then triggers disconnect.

Additional context
setTimeout and setInterval don't work in the background. Need to figure out workaround to avoid the need for these or work in background.

@davidliu davidliu added the bug Something isn't working label Jan 4, 2023
@davidliu davidliu self-assigned this Jan 4, 2023
@MfaXyz
Copy link

MfaXyz commented Jan 8, 2023

@yevhenlv
Copy link

It doesn't work on ios, app terminated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants