react-native-threads icon indicating copy to clipboard operation
react-native-threads copied to clipboard

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

Open SahilRS200 opened this issue 5 years ago • 1 comments

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

SahilRS200 avatar Mar 04 '19 15:03 SahilRS200

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

Traviskn avatar May 15 '19 01:05 Traviskn