I followed the step-by-step to upgrade to SDK33, including changing the imports from expo to the modular library, in the Audio case, importing from expo-av and running expo install expo-av and all that. But it simply doesn’t work.
To make sure, I downgraded to SDK32 (stashed all the changes, removed node_modules and ran npm install again) and everything works fine.
Any ideas? Anybody else running into similar issues with the Audio API?
I recently updated the “audio-recording-example” app (from SDK v27?) to SDK v34. I can’t remember exactly which changes were required for updating from v32 to v33, but off the top of my head, maybe you need to add a couple of keys to Audio.setAudioModeAsync()?
@wodin that did the trick!
The only thing I was missing was adding the key staysActiveInBackground to the object passed to Audio.setAudioModeAsync()
Thank you so much!