i have to perform in-app voice call in react-nativ...
# ask-ai
d
i have to perform in-app voice call in react-native ios what method do i need to use for calling and persisting the call in background mode
t
Thanks for reaching out, Kanchan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It sounds like you’re building a React Native iOS in‑app voice call and need the call to continue in background. Here’s the minimal approach: • Use the LiveKit React Native SDK (which uses
react-native-webrtc
) to join a room and publish the microphone. Follow the React Native quickstart setup, including
registerGlobals()
and native install steps. React Native quickstart • Get a LiveKit access token from your token server, then connect to your room and publish audio. Connecting to LiveKit • Camera & microphone • To keep audio active in background on iOS, enable the app capability: ◦ Xcode > Target > Signing & Capabilities > Background Modes: check Audio, AirPlay, and Picture in Picture. ◦ Ensure required iOS permissions strings are in
Info.plist
. Camera & microphone • If you need phone-like UX (lock‑screen/incoming call), implement native CallKit on iOS via a bridge or native module. If you’re instead dialing/receiving phone numbers (SIP), use LiveKit SIP: • Outbound: create a SIP participant to place the call and bridge it into your room. Making outbound calls • Inbound: configure an inbound trunk and dispatch rule to route calls into rooms. SIP trunk setup Would you like a short code snippet for connecting and publishing mic in React Native, or guidance on the iOS CallKit bridge? Sources: LiveKit coming to React Native! | React Native SDK | livekit/livekit_composite | DeepWiki | Making outbound calls | LiveKit Docs | SIP trunk setup | LiveKit Docs | Generating tokens | LiveKit docs
d
what should i need to use for the audio call
t
It sounds like you need the stack to build an in‑app audio call in React Native on iOS. Use: • LiveKit React Native SDK +
react-native-webrtc
to join a room and publish the microphone • A token server to issue LiveKit access tokens to the app • iOS background audio enabled: Target > Background Modes > check “Audio, AirPlay, and Picture in Picture” If you mean phone calls to/from numbers, use LiveKit SIP: • Outbound: create a SIP participant into your room • Inbound: set up an inbound trunk + dispatch rule Docs: • React Native quickstart: https://docs.livekit.io/home/quickstarts/react-native • Connect/publish mic: https://docs.livekit.io/home/client/connect • SIP calls: https://docs.livekit.io/sip/making-calls Do you want a minimal RN code snippet to connect and publish the mic?