0

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.

5
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Feb 4 at 1:44
  • read more about Firebase silence notification Commented Feb 4 at 6:35
  • @famfamfam thanks for commenting. Here in my case can I connect go my websocket url even when the app is closed without user interaction. Suppose if another user start the call and when he starts the call I send silent notification to myself would I we able to connect to the websocket and join the room just by receiving the silent notification? Commented Feb 4 at 20:11
  • in your case, you need to use callkit for IOS, fullscreenintent for Android. If you want to handle in react native side, let see react-native-in-call-manager Commented Feb 5 at 1:55
  • @famfamfam react-native-incall-manager is user for these purposes Showing the native call UI Managing audio routes Proximity sensor behavior Handling call events (answer, end, hold) I want to connect to my websocket when app is closed how will it fulfill my purpose Commented Feb 5 at 10:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.