On iOS SDK41 Managed.
In my Expo app and built app, if I have background music playing (like Spotify), the audio will fail to prepare (prepareToRecordAsync) with an error like “Prepare encountered an error: recorder not prepared.”
If I turn off the background Spotify playing, it works, turn Spotify back on, the recording starts failing again. I turn Spotify off. The audio recording starts working again.
I’ve tried various setAudioModeAsync calls including
playsInSilentModeIOS: true, // they can mute the videos manually allowsRecordingIOS: true, staysActiveInBackground: false, interruptionModeIOS: Audio.INTERRUPTION_MODE_IOS_MIX_WITH_OTHERS, // we want other apps to lower so they can here the media shouldDuckAndroid: true, interruptionModeAndroid: Audio.INTERRUPTION_MODE_ANDROID_DUCK_OTHERS, playThroughEarpieceAndroid: false,
Doesn’t matter what I put error continues to happen, but only if background music is playing.
What am I missing here?