Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Is it possible to keep the socket.io open even when the app is closed

$
0
0

I am learning the ways to build a Chat app for iOS and Android using React Native and Socket.io. At the point, the socket is always connected to the server when the app is on foreground. The problem here now is when the app is manually closed by the user, the socket disconnects and never comes alive until the User switches it back.

After a research on it I came out with Headless js which acts as a service but unfortunately it only works on Android and not iOS.

Is there any idea as to how to work this around to make the socket open even when the user closes the app? I would be grateful to know.


Viewing all articles
Browse latest Browse all 16552

Trending Articles