In my app I have communication with my server through both XMLHttpRequests and Websockets.
When the app is running in the background for a small amount of time and then I open it up again, it seems like all communication is stopped. The app itself loads properly, and I can switch scenes and anything, but my XMLHttpRequests and WebSocket messages are not sent, and I can’t listen for any messages from the server with my WebSocket.
Also, my scheduled functions are not executed while in background. But I need to do that, as I have a timer which should always be running, even if the app is not opened.
Does anyone know why that is and how I can fix this?