I'm not actually sure iOS has this issue but android definitely appears to not let app developers listen to a websocket in the background based on my experience