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
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
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