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

Threads pause when main application goes to background or screen is locked #64

Open
SahilRS200 opened this issue Mar 4, 2019 · 1 comment

Comments

@SahilRS200
Copy link

Hi,

I am testing this library with a simple functionality where this thread would connect to a websocket server and send a message every 6 seconds through a timer, or relay whatever string is sent through worker.postmessage call.

However, the threads stop pinging to websockets if i lock the screen or navigate away from the RN app.

This is my primary requirement - to be able to use a few of these worker threads to do some background work irrespective of RN app being on focus or not

@Traviskn
Copy link
Contributor

react-native-threads do not continue to run if your app is paused or put into the background - unfortunately the library does not meet your requirement

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

2 participants