I have followed the same suggestions here. In my case, the socket.io connection is fine, but the webrtc ice connection gets disconnected. Specifically, the iceconnectionstate change event is fire and goes from connected -> disconnected with 30s. This is while a foreground service is running. Any thoughts on why this would be the case?