android - (React Native)Connect to websocket when the app is in background or closed without user interaction - Stack Overflow

admin2025-04-16  6

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.

转载请注明原文地址:http://www.anycun.com/QandA/1744744773a87005.html