LiveKit Call Disconnects When App Is in Background...
# agents
a
LiveKit Call Disconnects When App Is in Background or Screen Is Locked Hi LiveKit Team, We’re currently developing a mobile application in React Native (Expo) that uses LiveKit for real-time audio calls with an AI assistant (AI Pandit). However, we’re encountering a critical issue: • The LiveKit connection disconnects when the app goes into the background, • When the user switches to another app, or • When the device screen locks. We’ve already implemented foreground services and keep-awake mechanisms, but the issue persists — the audio stream stops and LiveKit disconnects after a short period. This issue is severely impacting our production timeline and requires your urgent attention. Could you please confirm whether LiveKit supports maintaining active audio sessions in background or locked states (for both Android and iOS)? If yes, please provide any specific configurations or best practices to ensure continuous call stability in these conditions. We would greatly appreciate a prompt response or guidance, as this is currently blocking our app’s release. Thank you for your time and support.
l
It sounds like you are following the same broad steps, but did you see https://github.com/livekit/client-sdk-react-native/blob/main/README.md#background-processing? I know that advice is for native apps, not expo apps, but the same principles should still apply.