some-easter-99890
12/31/2025, 2:27 PMcom.apple.coreaudio.avfaudio required condition is false: IsFormatSampleRateAndChannelCountValid(format) This happens whilst setting room.localParticipant.setMicrophoneEnabled(true) - we have ensured user has granted permission before attempting this action.tall-airline-16756
12/31/2025, 2:27 PMtall-airline-16756
12/31/2025, 2:28 PMroom.localParticipant.setMicrophoneEnabled(true). I’m responding to the crash error com.apple.coreaudio.avfaudio required condition is false: IsFormatSampleRateAndChannelCountValid(format) and the fact you have already confirmed microphone permission.
A few targeted troubleshooting steps and quick questions to help isolate the cause:
Suggested quick checks (try these first)
• Add a short delay (100–300 ms) after confirming microphone permission before calling setMicrophoneEnabled(true) to avoid a race where AVAudioSession isn’t fully ready.
• Reproduce in a minimal app: create a small Expo/React Native project with only LiveKit + react-native-webrtc to rule out conflicts from other audio/background plugins (e.g., expo-av, background audio).
• Ensure livekit-client and react-native-webrtc are up to date — audio format fixes are often released in those deps.
• Temporarily disable other audio apps/plugins running in your app to check for interference with AVAudioSession.
If you can provide any of the following, it will help me narrow this down:
• Expo/React Native versions, livekit-client and react-native-webrtc versions.
• Whether this occurs on device only, simulator, or both, and iOS versions where it reproduces.
• A minimal code snippet showing how you request permission and call setMicrophoneEnabled.
• Any console or device logs around the time of the crash (stack trace or preceding AVAudioSession logs).
If you’d like, I can walk through a minimal repro with you or suggest a small native AVAudioSession configuration to try if you can add a tiny native module. Which of the above details can you share?
Sources: client-sdk-react-native | livekit/livekit_composite | DeepWiki | client-sdk-flutter | livekit/livekit_composite | DeepWiki | [Flutter iOS] SoundWaveformWidget / AudioVisualizerWidget Not Working (Miss...