How to keep the app running in the background?

I am using Socket.io to send some data between the user and the server, I am facing a problem, when the app goes to the background, the client side doesn’t send any data to the server and disconnects after a few seconds, it’s like the app completely stops when it goes to the background.

I am using EAS build, is there any thing that can keep the app running in the background?

  • Managed workflow
  • eas-cli version: Latest