React Native : want to run a function from app, and it would be not stop if app in background or foreground state

328 Views Asked by At

I have a function that has a for loop and I trigger the APIs in the queue it's working very well but if I change my app state foreground to background my queue was paused until I reopen the app.

That function doesn't need to stop until I stop manually or all APIs hit successfully.

React native version: 0.64.2

0

There are 0 best solutions below