How is Jitsi's Mobile App (React Native) working flawlessly in the background?

I am implementing the same in my app, so far I’ve created a foreground service but still not able to keep the connection alive in the background.