I set up websocket support in my hapi server using nes
Tried it on android and so far the realtime updates is still working even in background state.
The problem is with IOS, realtime update won't trigger when your app is in the background state. How can i make this work
iOS only allows your app to keep running in the background in some specific cases. Keeping the WebSocket connection is not one of them. In order to achieve this realtime update, your server needs to provide an API which allows the app to fetch the new data, and your app needs to register a background task and do the fetch. For more detail, you can check the link here.