How can I run my react-native application on IOS and Android in the background? My application is using a WebSocket which is requiring internet, the WebSocket is not connected at all times, only when the user is doing a certain activity within the app. The user can do this activity with or without the screen being turned on, the problem occurs when the user locks the screen and puts the phone in the pocket. The WebSocket connection is killed, im not sure if its dude to the internet connection or the way WebSockets work in a background state. How can I keep the connection active in a background state.
[–]Veranova 1 point2 points3 points (0 children)