So I am trying to create an app in which user can receive audio stream when the app is in background or closed. But when I am trying to connect the audio when the app is opened and putting that in background that part is working. But if I close the app or put it in background other user is not able to send the audio stream.
I am using react-native-background-actions to perform background tasks and mediasoup for webrtc.
How can I wake up the app and connect to the websocket server without interaction by the user.