hello, i'm developing an ai calling app in reactna...
# agents
d
hello, i'm developing an ai calling app in reactnative expo. calling is working fine when phone screen is locked and on other app but during call when going on apps like snapchat instagram whatsapp my app is suspending, can anyone help me how to overcome this issue?
l
Is it pure coincidence that this question is very similar to this one from Friday? https://livekit-users.slack.com/archives/C07FY8WHGPM/p1761927066437539
d
I’m developing this app, and on iOS, the app gets suspended when I switch to apps like Snapchat, WhatsApp, or Instagram. However, it works perfectly fine on other apps like Notes or Photos, and even when the phone screen is locked — the call continues without any issue. I faced a similar problem on Android, but I was able to fix it by setting
Copy code
audioTypeOptions: AndroidAudioTypePresets.communication
in
AudioSession.configureAudio()
. Now, I’m facing this issue only on iOS. I already asked for help on AskAI but didn’t get any solution. Could you please help me with this? It’s currently blocking my progress.
l
Did you see the iOS section at https://github.com/livekit/client-sdk-react-native/blob/main/README.md#background-processing? I haven't tried it myself, but it looks relevant.
d
yes i had checked this but the thing is app is suspending after 1 minute over the apps like instagram snapchat whatsapp which are already using microphone camera whereas when going on apps like notes or in backgrund or in locked state its working perfectly fine
@lively-winter-88668 We’re currently facing a critical issue with our iOS app — the outgoing audio call disconnects or gets suspended when the app goes into the background. Our goal is to perform outgoing audio calls (no video) using LiveKit, where we create a room using a server URL and token. The call works perfectly while the app is active, but once it’s backgrounded, it stops. We’ve already: • Enabled Background Modes (
audio
,
voip
) in both Xcode and app.json / Info.plist • Called
setupCallService()
before
registerGlobals
in
App.tsx
• Started the native audio session before
startCallService()
• Verified our
AVAudioSession
configuration Despite all these configurations, iOS still suspends the app when it’s backgrounded. We couldn’t find any proper or complete guide to make LiveKit outgoing audio calls persist in the background on iOS. We urgently need your help and detailed guidance or configuration steps to fix this issue.